logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Make Solr Indexing and Searching case insensitive

 
Post new topic   Reply to topic    Apache Forum Index -> Other Software



View previous topic :: View next topic  
Author Message
kirubhananth



Joined: 27 Nov 2015
Posts: 1
Location: India

PostPosted: Fri 27 Nov '15 14:43    Post subject: Make Solr Indexing and Searching case insensitive Reply with quote

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: 6255
Location: Germany, Next to Hamburg

PostPosted: Sat 02 Jan '16 22:41    Post subject: Reply with quote

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


Post new topic   Reply to topic    Apache Forum Index -> Other Software
Page 1 of 1