The strategy I use is rather simple:

I put the data I want to match in 2 fields, 1 tokenized (indexed=true,
stored=false), 1 exact match (indexed=true, stored=true)

2008/8/20 Simon Hu <[EMAIL PROTECTED]>

>
> Hi
>
> I have a text field named prodname in the solr index. Lets say there are 3
> document in the index and  here are the field values for prodname field:
>
> Doc1: cordless drill
> Doc2: cordless drill battery
> Doc3: cordless drill charger
>
> Searching for prodname:"cordless drill" will hit all three documents.  So
> how can I make Doc1 score higher than the other two?
>
> BTW, I am using solr1.2.
>
> thanks!
>
> -Simon
>
> --
> View this message in context:
> http://www.nabble.com/How-to-boost-the-score-higher-in-case-user-query-matches-entire-field-value-than-just-some-words-within-a-field-tp19079221p19079221.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


-- 
Alexander Ramos Jardim

Reply via email to