I want to do an exact match on a field which is stemmed. Eg.My data has this value :- "Babysitters at work"
<fieldType name="string_ci_stem" class="solr.TextField" sortMissingLast="true" omitNorms="true">
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.SnowballPorterFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.SnowballPorterFilterFactory"/>
</analyzer>
The document getting indexed is "babysitters at work" instead of "babysit at work". I have seen that solr only stems the last word of the sentence when the keywordTokenizer is used.
Is there a way to index "Babysitters at work" as "babysit at work", such that :-
"babysit at work" - return result "babysit work" - doesnot return result.
Any other schema.xml definations which will help to achieve the results?
Any help will be appreciated.
Edit : Updated the question.