TAMULib / SAGE

Search Aggregation Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Searches are case-sensitive for special searches, like Subject search.

kaladay opened this issue · comments

Describe the bug
Searches when not searching "Everything" is not case-sensitive.
This is either by design (which makes this issue a feature request) or it is a bug.
I am assuming it is a bug.

To Reproduce
Steps to reproduce the behavior:

  1. Go to College Of Veterinary Medicine Image Collection.
  2. Add Cattle to Everything search and click search, which works.
  3. Add cattle to Everything search and click search, which works.
  4. Change search dropdown to Subject.
  5. Add Cattle to Subject search and click search, which works.
  6. Add cattle to Subject search and click search, which does not return results.

Expected behavior
I expect at step 6, that cattle for Subject searches should returnr esults.

Additional context
This might be solvable via SOLR configuration changes.

This matter can likely be addressed here: https://github.com/TAMULib/tl_solr/tree/master/files/default/cores/sage-core

Suggestion from William:

add

<filter class="solr.LowerCaseFilterFactory"/>

into 

<fieldType name="whole_strings" class="solr.TextField" omitNorms="true" sortMissingLast="true" multiValued="true">
      <analyzer>
        <tokenizer class="solr.KeywordTokenizerFactory"/>
      </analyzer>
    </fieldType>

and separate between index and query time with two analyzer.