lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prashantc88 <prashant.chau...@searshc.com>
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
field.

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"
positionIncrementGap="100">
            <analyzer type="index">
                    <tokenizer class="solr.KeywordTokenizerFactory"/>
                    <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
                    <filter class="solr.LowerCaseFilterFactory"/>
            </analyzer>

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: http://lucene.472066.n3.nabble.com/Solr-schema-xml-query-analyser-tp4148317.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message