You could have a second keyword field with a regex filter to drop out common
terms from restaurant names, such as "restaurant", "pizza", (even "hut"),
etc.
-- Jack Krupansky
-----Original Message-----
From: Ramzi Alqrainy
Sent: Monday, August 27, 2012 11:29 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr Partial and Exact Matching
Many Thanks for your kind email. I expect that I have reached the
information
in some other way. I will explain my point again with different scenario.
I have a big data of places. let's take sample of restaurants places under
category restaurants. Some of places contains "Restaurant" in their names
(e.g. "Jons Restaurant") and some doesn't (e.g. " Pizza Hut") .
When users search for "Restaurant", Actually they are not searching for a
certain restaurant. So, we need to remove the rank of place name, *why*? to
make sure that places which include "Restaurant" in their names don't affect
the ranking, and to support other factors like review, rating, category,
etc. , but when the users search for "Jons", they are actually searching for
"Jons Restaurant". So, in this case we will increase the weight for place
name to get it as first result. On other words we need to decrease place
name weight or rank if the query is common (idf is small) and increase it if
we search on query with big idf (rarely).
I hope you are understand my point of view.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solr-Partial-and-Exact-Matching-tp4003478p4003500.html
Sent from the Solr - User mailing list archive at Nabble.com.