lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prashantc88 <>
Subject Solr schema.xml query analyser
Date Mon, 21 Jul 2014 15:29:33 GMT
 0 down vote favorite

I am a complete beginner to Solr and need some help.

My task is to provide a match when the search term contains the indexed

For example:

    If query= foo bar and textExactMatch= foo, I should not get a MATCH
    If query= foo bar and textExactMatch= foo bar, I should get a MATCH
    If query= foo bar and textExactMatch= xyz foo bar/foo bar xyz, I should
get a MATCH

I am indexing my field as follows:

<fieldType name="textExactMatch" class="solr.TextField"
            <analyzer type="index">
                    <tokenizer class="solr.KeywordTokenizerFactory"/>
                    <filter class="solr.StopFilterFactory" ignoreCase="true"
                    <filter class="solr.LowerCaseFilterFactory"/>

So I'm indexing the text for the field as it is without breaking it further
down. Could someone help me out with how should I tokenize and filter the
field during query time.

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message