Actually I want to do exact matching with 'B T Patil' and I have created a following filed-type
<fieldType name="text_name" class="solr.TextField" omitNorms="false">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" preserveOriginal="1" splitOnNumerics="1" splitOnCaseChange="1" catenateWords="1"
catenateNumbers="1" catenateAll="1" generateWordParts="1" generateNumberParts="1" stemEnglishPossessive="1" />
</analyzer>
</fieldType>
Also my text field and ngram filed also applied on the string. So Whenever I am entering the B T Patil
query in a my field at that time its also returning me irrelevant results i.e Its returning me
b t Agrawal
Jaykumar B. Patil
BHASKAR B. PATIL
I am expecting it should return me b t patil or b.t.patil or b. t. patil
results.
Is any need to change the tokenizer ?
You can try something like this. Create a field type for exact match like following
boost this field and phrase field comparatively than text and text_name fields.
Give least priority to ngram fields if any.