Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Make Solr Indexing and Searching case insensitive |
|
Author |
|
kirubhananth
Joined: 27 Nov 2015 Posts: 1 Location: India
|
Posted: Fri 27 Nov '15 14:43 Post subject: Make Solr Indexing and Searching case insensitive |
|
|
Hi,
I have a solr instance that is having a physical folder as datasource. The documents within the folder was indexed and it is supporting full text search. The problem is that the search is case sensitive. How to make it case insensitive? I tried "<filter class="solr.LowerCaseFilterFactory"/>". But nothing worked.
It would be helpful if somebody help me in fixing this issue. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 02 Jan '16 22:41 Post subject: |
|
|
Code: | <fieldType name="string_ci" class="solr.TextField"
sortMissingLast="true" omitNorms="true">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory" />
</analyzer>
</fieldType> |
found on stackoverflow.com/questions/2053214/how-to-create-a-case-insensitive-copy-of-a-string-field-in-solr
So how do you build your query? |
|
Back to top |
|
|
|
|
|
|