Re: Match a phrase like "Apple iPhone 6 32GB white" with "iphone 6"
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 wrote: > You can just use synonyms for that.. rather hackish but it works > > On Mon, 9 Apr 2018, 05:06 Sami al Subhi, wrote: > > > I think this filter will output the desired result: > > > > > > > > > > > > > > > > > > > > > > > > > > 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 > > >
Re: Match a phrase like "Apple iPhone 6 32GB white" with "iphone 6"
You can just use synonyms for that.. rather hackish but it works On Mon, 9 Apr 2018, 05:06 Sami al Subhi, wrote: > I think this filter will output the desired result: > > > > > > > > > > > > > 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 >
Re: Match a phrase like "Apple iPhone 6 32GB white" with "iphone 6"
I think this filter will output the desired result: 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
Re: Match a phrase like "Apple iPhone 6 32GB white" with "iphone 6"
It reminds edismax (see mm, pf params) and MLT (more like this) features, but unless you _extract_ an _entity_ to search in compatible_with field it's can hardly avoid false positive matches like "apple white". On Sun, Apr 8, 2018 at 11:01 PM, Sami al Subhi wrote: > I have a set of products' docs with field name_en for example > name_en:"Apple iPhone 6 32GB white" > when a user chooses this product to view, I use the product name as a > search > phrase and retrieve all the product accessories docs that have "iphone 6" > (not "iphone 7") in the field of compatible_with > > I am really struggling with how to tokenize and filter the field > compatible_with in order to achieve a match by the relative product name. > > can you please help me! > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html > -- Sincerely yours Mikhail Khludnev