I want to ask you about partial and exact matching. I have documents for
Places and we need to get exact match if the user search for place name and
get the results based on other factors (not place name) if the query is
general or partial.


This is an example to explain more details.
 
If we suppose that schema for our documents contains 2 fields like below.

<field name="Place Title" type="text" indexed="true" stored="true"
required="true"/>
<field name="Review" type="text" indexed="true" stored="true"
multiValued="true"/>

and we have 2 documents 

D1 :

Place Title : Pizza Hut
Review : Nice meal

D2 : 

Place Title : Little Caesar
Review :   Nice Pizza

If the user search for general query like pizza only, we will decrease the
rank for place title to support reviews like
&qf= place_title^1 review^2
But if we search about exact match like "Pizza Hut", we will increase the
rank
&qf= place_title^5 review^2

I have many idea like using term frequency and many approach but I need the
best practice for implenting it.

Please advice,
Thanks in advance.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Partial-and-Exact-Matching-tp4003478.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to