I try to query with custom score (with param lang => js)
But, I didn't find documentation about the way to realise the script (acced
to the _source values, modify score etc.)
The score value that i need to personalize depends on the value of one
field :
if (myfield == '1234') {
score += 10;
} else if (myfield == '456' )
{
score += 20;
}
On Thursday, June 21, 2012 10:49:03 AM UTC-4, gkcr2d2 wrote:
Hello,
I try to query with custom score (with param lang => js)
But, I didn't find documentation about the way to realise the script
(acced to the _source values, modify score etc.)
The score value that i need to personalize depends on the value of one
field :
if (myfield == '1234') {
score += 10;
} else if (myfield == '456' )
{
score += 20;
}
On Thursday, June 21, 2012 10:49:03 AM UTC-4, gkcr2d2 wrote:
Hello,
I try to query with custom score (with param lang => js)
But, I didn't find documentation about the way to realise the script
(acced to the _source values, modify score etc.)
The score value that i need to personalize depends on the value of one
field :
if (myfield == '1234') {
score += 10;
} else if (myfield == '456' )
{
score += 20;
}
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.