You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ayyanar <ay...@aspiresys.com> on 2008/12/15 06:08:54 UTC
Re: scoring individual values in a multivalued field
Hi Hossman, you suggested two solutions. Can you explain little bit more on
the second option? Iam not able to understand. Kindly explain with an
example
At the moment, the simplest mechanisms for achieving something like what
you are describing that i know of are:
1) repetitive values. Add a value twice to make it counnt (roughly)
twice as much. (eliminating lengthNorm and customing your Similarity
is neccessary to make it worth exactly twice as much)
2) differnet fields. Partition the spectrum of "importance" for your
values into N buckets, make a field for each bucket, put the value in
the bucket that makes the most sense, and at query time query ofr
each bucket with a differnet query time boost.
--
View this message in context: http://www.nabble.com/scoring-individual-values-in-a-multivalued-field-tp19212800p21008401.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: scoring individual values in a multivalued field
Posted by Chris Hostetter <ho...@fucit.org>.
: Hi Hossman, you suggested two solutions. Can you explain little bit more on
: the second option? Iam not able to understand. Kindly explain with an
: example
[...]
: 2) differnet fields. Partition the spectrum of "importance" for your
: values into N buckets, make a field for each bucket, put the value in
: the bucket that makes the most sense, and at query time query ofr
: each bucket with a differnet query time boost.
You make a field called "text" and you make a field called
"important_text" and you make a field called "really_important_text". you
index everything in the "text" field, you also index more important words
in the "important_text" field, and you index the *really* important stuff
in the all three fields. At query time you search all of the fields for
your word, and you use a higher boost value on the two important fields.
-Hoss