A simple "OR" boolean query will boost documents that have more matches. You can also selectively boost individual OR terms to control importance. And do and "AND" for the required terms, like "tv".

-- Jack Krupansky
-----Original Message----- From: britske
Sent: Thursday, May 09, 2013 11:21 AM
To: solr-user@lucene.apache.org
Subject: Fuzzy searching documents over multiple fields using Solr

Not sure if this has ever come up (or perhaps even implemented without me
knowing) , but I'm interested in doing Fuzzy search over multiple fields
using Solr.

What I mean is the ability to returns documents based on some 'distance
calculation' without documents having to match 100% to the query.

Usecase: a user is searching for a tv with a couple of filters selected. No
tv matches all filters. How to come up with a bunch of suggestions that
match the selected filters as closely as possible? The hard part is to
determine what 'closely' means in this context, etc.

This relates to (approximate) nearest neighbor, Kd-trees, etc. Has anyone
ever tried to do something similar? any plugins, etc? or reasons Solr/Lucene
would/wouldn't be the correct system to build on?

Thanks



--
View this message in context: http://lucene.472066.n3.nabble.com/Fuzzy-searching-documents-over-multiple-fields-using-Solr-tp4061867.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to