Again, you haven't indicated what the problem is. I mean, have you actually
confirmed that a problem exists? Add debugQuery=true to your query and
examine the "explain" section if you believe that Solr has improperly
computed any document scores.
If you simply want to boost a term in a query, use the "^" operator, which
applies to the preceding term. a boost of 1.0 means no change, 2.0 means
double, 0.5 means cut in half.
But, you don't need to boost. Relevancy is based on the data in the
documents themselves.
BTW, q=text%3Atest+pdf does not search for "pdf" in the "text" field -
field- qualification only applies to a single term, but you can use
parentheses: q=text%3A(test+pdf)
-- Jack Krupansky
-----Original Message-----
From: eShard
Sent: Monday, July 22, 2013 12:34 PM
To: solr-user@lucene.apache.org
Subject: Re: how to improve (keyword) relevance?
Sure, let's say the user types in test pdf;
we need the results with all the query words to be near the top of the
result set.
the query will look like this: /select?q=text%3Atest+pdf&wt=xml
How do I ensure that the top resultset contains all of the query words?
How can I boost the first (or second) term when they are both the same field
(i.e. text)?
Does this make sense?
Please bear with me; I'm still new to the solr query syntax so I don't even
know if I'm asking the right question.
Thanks,
--
View this message in context:
http://lucene.472066.n3.nabble.com/how-to-improve-keyword-relevance-tp4079462p4079502.html
Sent from the Solr - User mailing list archive at Nabble.com.