Hi All,

I have a use case where I need to Search like this-

"Apple Corporation Limited" should create the pairs like -Apple
Corporation,Corporation Apple,Corporation Limited,Limited Corporation.
Below is the filter I am using-

 <fieldType name="text_shingle" class="solr.TextField" 
positionIncrementGap="100"> 
      <analyzer type="index"> 
        <tokenizer class="solr.WhitespaceTokenizerFactory"/> 
        <filter class="solr.LowerCaseFilterFactory"/> 
        <filter class="solr.PositionFilterFactory" />
        <filter class="solr.ShingleFilterFactory" minShingleSize="2"
maxShingleSize="2" outputUnigrams="false" /> 
      </analyzer> 
      <analyzer type="query"> 
        <tokenizer class="solr.WhitespaceTokenizerFactory"/> 
        <filter class="solr.LowerCaseFilterFactory"/> 
        <filter class="solr.ShingleFilterFactory" outputUnigrams="false"
minShingleSize="2" maxShingleSize="2" outputUnigramIfNoNgram="true" />
                 
      </analyzer> 
    </fieldType>

Below are the issues I am facing-
1)This only allows me to search like a phase query.I mean to say I does
allows "Apple Corporation" but does not allow Apple Corporation.
2)Also I need to know how I can search for -Corporation Apple .
3)I want to restrict single word search like Apple.I mean to say apple
should not give me any results.

Please suggest.
Regards,
Vibhor Jaiswal




--
View this message in context: 
http://lucene.472066.n3.nabble.com/ShingleFilterFactory-tp4065068.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to