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 abhishek007 <ab...@rapleaf.com> on 2008/10/07 09:17:51 UTC
Re: scoring individual values in a multivalued field
I hope I am in the right thread for my doubt, which is somewhat related to
the ongoing discussion.
I have seen that when we search in a multivaled field, the length
normalization factor considers all values of the field, rather than
considering only the matched field value.
For example, if my document is like:
<document>
<field name="author">John Hennessy</field>
<field name="author">David Patterson</field>
</document>
and my query string is "Hennessy", the length normalization factor considers
all 4 tokens as in "John", "Hennessy", "David", "Patterson". This is
similar to the score if my field was like:
<field name="author">John Hennessy David Patterson</field>
I want the score to consider only that field value with any matches (here,
"John Hennessy").
Thanks in advance
-Abhishek
hossman wrote:
>
>
> : I ran into the same problem some time ago, couldn't find any relation to
> the
> : boost values on the multivalued field and the search results. Does
> anybody
>
> as the OP mentioned, the index time boost values for a field are per field
> *name* not per value ... they all get folded in together into hte
> fieldNorm for that field name in that document.
>
>
>
> -Hoss
>
>
>
--
View this message in context: http://www.nabble.com/scoring-individual-values-in-a-multivalued-field-tp19212800p19852427.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: scoring individual values in a multivalued field
Posted by abhishek007 <ab...@rapleaf.com>.
: unfortunately not possible. lengthNorm is part of fieldNorm and for each
: doc there is one fieldNorm per field name...
Thanks for the reply Chris, this solves part of my problem. I have explained
my problem in much more detail in a separate thread (as it would have been
out of context here).
http://www.nabble.com/Querying-multivalued-field---can-scoring-formula-consider-only-matched-values--tt19865873.html#a19865873
--
View this message in context: http://www.nabble.com/scoring-individual-values-in-a-multivalued-field-tp19212800p19928740.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>.
: and my query string is "Hennessy", the length normalization factor considers
: all 4 tokens as in "John", "Hennessy", "David", "Patterson". This is
: similar to the score if my field was like:
:
: <field name="author">John Hennessy David Patterson</field>
:
: I want the score to consider only that field value with any matches (here,
: "John Hennessy").
: Thanks in advance
unfortunately not possible. lengthNorm is part of fieldNorm and for each
doc there is one fieldNorm per field name...
: > as the OP mentioned, the index time boost values for a field are per field
: > *name* not per value ... they all get folded in together into hte
: > fieldNorm for that field name in that document.
-Hoss