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?