Searches are case-sensitive for special searches, like Subject search.
kaladay opened this issue · comments
Kevin Day commented
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:
- Go to College Of Veterinary Medicine Image Collection.
- Add
Cattle
to Everything search and click search, which works. - Add
cattle
to Everything search and click search, which works. - Change search dropdown to
Subject
. - Add
Cattle
to Subject search and click search, which works. - 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.
jcreel commented
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.