Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kaladay opened this issue Dec 20, 2022 · 1 comment · Fixed by #496
Open

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

kaladay opened this issue Dec 20, 2022 · 1 comment · Fixed by #496
Assignees
Labels
1 bug Something isn't working

Comments

@kaladay
Copy link
Contributor

kaladay commented Dec 20, 2022

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.

@kaladay kaladay added the bug Something isn't working label Dec 20, 2022
@jcreel
Copy link
Member

jcreel commented Jan 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants