It seems you want Id to only match on complete field values.  If that is the
case then you should not do tokenization nor perhaps any text analysis
altogether.  Consider removing the whole <analyzer /> block or using
KeywordTokenizerFactory plus a modicum of other stuff (perhaps lowercasing). 
For the particular examples you gave... it would be sufficient to simply
remove “WordDelimeterFilterFactory” as an analysis step.

~ David


GPS. wrote:
> 
> I am using a fieldType, with following configuration:
> 
> <!-- Less flexible matching, but less false matches.  Probably not ideal
> for product names,
>          but may be good for SKUs.  Can insert dashes in the wrong place
> and still match. -->
>     <fieldType name="textTight" class="solr.TextField"
> positionIncrementGap="100" >
>       <analyzer>
>         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
>         <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand="false"/>
>         <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="stopwords.txt"/>
>         <filter class="solr.WordDelimiterFilterFactory"
> generateWordParts="0" generateNumberParts="0" catenateWords="1"
> catenateNumbers="1" catenateAll="0"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>         <filter class="solr.EnglishPorterFilterFactory"
> protected="protwords.txt"/>
>         <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
>       </analyzer>
>     </fieldType>
> 
> I have <field name="Id" type="textTight" indexed="true" stored="true"
> omitNorms="true"/>
> 
> When I try searching with :
> http://localhost:8001/solr/select/?q=Id:ARMZ
> It gives me complete list, where Id is: ARMZ or ARMZ117 or ARMZ129
> 
> What I want is if I search for ARMZ, it should tightly match only ARMZ and
> shouldn't return ARMZ117 OR ARMZ129
> Similarly, If I try searching for ARMZ1, it shouldn't give me any of
> ARMZ117 OR ARMZ129
> 
> Is it possible to achieve this, by somehow strictly mapping the input text
> with field Id?
> Any help on this matter would be deeply appreciated.
> 
> Thanks
> GPS.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-WordDelimiterFilterFactory-tp21149384p21150495.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to