That sounds more like a "reverse" query - trying to match documents against the query rather than matching the query against the documents. Solr doesn't have that feature currently.

Although I'm not absolutely sure what your "textExactMatch" is. I'm guessing that it is a document field in your index.

-- Jack Krupansky

-----Original Message----- From: newBie88
Sent: Monday, July 21, 2014 1:13 PM
To: [email protected]
Subject: Re: Solr schema.xml query analyser

My apologies Jack. But there was a mistake in my question.

I actually switched "query" and "textExactMatch" in my question.

I would be really helpful if you could have a look at the scenario once
again:

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

For example:

   If textExactMatch= foo bar and query= foo, I should not get a MATCH
   If textExactMatch= foo bar and query= foo bar, I should get a MATCH
   If textExactMatch= foo bar and query= 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>
</fieldType>

So I'm indexing the text for the field as it is without breaking it further
down. 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-tp4148317p4148352.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to