check your defaultOperator, ensure its OR

On 23 January 2012 05:56, jawedshamshedi <jawedshamsh...@gmail.com> wrote:
> Hi
> Thanks for the reply..
> I am using NGramFilterFactory for this. But it's not working as desired.
> Like I have a  field article_type that has been indexed using the below
> mentioned field type.
>
> <fieldType name="liketext" class="solr.TextField"
> positionIncrementGap="100">
>  <analyzer type="index">
>   <tokenizer class="solr.KeywordTokenizerFactory"/>
>   <filter class="solr.LowerCaseFilterFactory"/>
>   <filter class="solr.NGramFilterFactory" minGramSize="1" maxGramSize="25"
> />
>  </analyzer>
>  <analyzer type="query">
>   <tokenizer class="solr.KeywordTokenizerFactory"/>
>   <filter class="solr.LowerCaseFilterFactory"/>
>  </analyzer>
> </fieldType>
>
> The field definition for indexing is :
> <field name="article_type" type="liketext"    indexed="true"  stored="true"
> />
>
> now the problem is that I have a value article_type field has values like
> earrring and ring and it's required that when we search for ring earring
> should also come. But it's not happening.
>
> What else needs to be done in order to achieve this.
>
> Any further help will be appreciated.
>
> Thanks
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Search-within-words-tp3675210p3681044.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to