lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adhyan Arizki <a.ari...@gmail.com>
Subject Re: Match a phrase like "Apple iPhone 6 32GB white" with "iphone 6"
Date Mon, 09 Apr 2018 09:40:57 GMT
You can just use synonyms for that.. rather hackish but it works

On Mon, 9 Apr 2018, 05:06 Sami al Subhi, <sami@alsubhi.me> wrote:

> I think this filter will output the desired result:
>
> <analyzer type="query">
>    <tokenizer class="solr.StandardTokenizerFactory"/>
>    <filter class="solr.LowerCaseFilterFactory"/>
>    <filter class="solr.ShingleFilterFactory"/>
> </analyzer>
> <analyzer type="index">
>    <tokenizer class="solr.StandardTokenizerFactory"/>
>    <filter class="solr.LowerCaseFilterFactory"/>
>    <filter class="solr.FingerprintFilterFactory" separator=" " />
> </analyzer>
>
> indexing:
> "iPhone 6" will be indexed as "iphone 6" (always a single token)
>
> querying:
> so this will analyze "Apple iPhone 6 32GB white" to "apple", "apple
> iphone",
> "iphone", "iphone 6" and so on...
> then here a match will be achieved using the 4th token.
>
>
>  I dont see how this will result in false positive matching.
>
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message