Hi,
I created a simple custom_score_script that looks at a MultiValueField
(tags), and if it finds the query (lets say a single word) inside of the
list of tags, it adds ".05" onto the document score.
What I've found is that it is only working on some of the values inside of
the MultiValueField.
For example, if the field contains ['door', 'table', 'ring'], the script
may only increase the score on ring and table... its completely random
object to object.
I have some examples showing whats going on along with the simple custom
score script (python). http://dpaste.com/1420440/
Any help is much appreciated it... its such a simple script - its killing
me that I can't figure this odd behavior out.
On Thursday, October 17, 2013 3:49:15 PM UTC-4, Dave Brown wrote:
Hi,
I created a simple custom_score_script that looks at a MultiValueField
(tags), and if it finds the query (lets say a single word) inside of the
list of tags, it adds ".05" onto the document score.
What I've found is that it is only working on some of the values inside of
the MultiValueField.
For example, if the field contains ['door', 'table', 'ring'], the script
may only increase the score on ring and table... its completely random
object to object.
I have some examples showing whats going on along with the simple custom
score script (python). http://dpaste.com/1420440/
Any help is much appreciated it... its such a simple script - its killing
me that I can't figure this odd behavior out.
On Thursday, October 17, 2013 3:49:15 PM UTC-4, Dave Brown wrote:
Hi,
I created a simple custom_score_script that looks at a MultiValueField
(tags), and if it finds the query (lets say a single word) inside of the
list of tags, it adds ".05" onto the document score.
What I've found is that it is only working on some of the values inside of
the MultiValueField.
For example, if the field contains ['door', 'table', 'ring'], the script
may only increase the score on ring and table... its completely random
object to object.
I have some examples showing whats going on along with the simple custom
score script (python). http://dpaste.com/1420440/
Any help is much appreciated it... its such a simple script - its killing
me that I can't figure this odd behavior out.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.