Hi Sami, I agree with Mikhail, if you have relatively complex data you could curate your own knowledge base for products as use it for Named entity Recognition. You can then search a field compatible_with the extracted entity.
If the scenario is simpler using the analysis chain you mentioned should work (if the product names are always complete and well curated). Cheers -------------------------- Alessandro Benedetti Search Consultant, R&D Software Engineer, Director www.sease.io On Mon, Apr 9, 2018 at 10:40 AM, Adhyan Arizki <a.ari...@gmail.com> wrote: > You can just use synonyms for that.. rather hackish but it works > > On Mon, 9 Apr 2018, 05:06 Sami al Subhi, <s...@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 > > >