On 3/11/07, shai deljo <[EMAIL PROTECTED]> wrote:
Thanks, The only way i found to do this (http://www.mail-archive.com/solr-user@lucene.apache.org/msg02456.html) is to hack and repeat the word several times in the field, but doesn't this screw up the norms?
Yes, it can influence the norms.
Also, how do i boost words in a query? e.g. q=key1 key2 and i know key2 is twice as important than key1 ? (searching 1 field).
q=key1 key2^2 If the keywords that have more importance are the same for every document, query-time boosting is by far the more preferable route. You have much more flexibility and it isn't less performant. There are some things which are elegantly solved using index-time boosting, and so it is likely that lucene will support it one day. -Mike