I have a strange behavior with a custom_score query ( normally the script
applied to the score of the documents returned by the query )
here is my prob:
I have a total of 440 hits with "script": "if (doc ['boost_category']
empty == 'false'.) {return doc ['boost_category'] value * _score.} else
{return _score} "
and 4977 hits returned using the function: "script": "_score"
Do you get any shard failures with the more complex script?
On Wednesday, April 17, 2013 6:31:44 AM UTC-4, Fadel Chafai wrote:
Hello,
I have a strange behavior with a custom_score query ( normally the script
applied to the score of the documents returned by the query )
here is my prob:
I have a total of 440 hits with "script": "if (doc ['boost_category']
empty == 'false'.) {return doc ['boost_category'] value * _score.} else
{return _score} "
and 4977 hits returned using the function: "script": "_score"
I'm sorry for the delay, yes exactly I have queries that works but after a
while they are no longer walking ??????
On Thursday, April 18, 2013 11:03:01 PM UTC, Igor Motov wrote:
Do you get any shard failures with the more complex script?
On Wednesday, April 17, 2013 6:31:44 AM UTC-4, Fadel Chafai wrote:
Hello,
I have a strange behavior with a custom_score query ( normally the script
applied to the score of the documents returned by the query )
here is my prob:
I have a total of 440 hits with "script": "if (doc ['boost_category']
empty == 'false'.) {return doc ['boost_category'] value * _score.} else
{return _score} "
and 4977 hits returned using the function: "script": "_score"
How does the failure look like? Can you post the response that you get when
request fails? Do you see any error messages in the log?
On Thursday, April 25, 2013 12:53:59 PM UTC+2, Fadel Chafai wrote:
I'm sorry for the delay, yes exactly I have queries that works but after a
while they are no longer walking ??????
On Thursday, April 18, 2013 11:03:01 PM UTC, Igor Motov wrote:
Do you get any shard failures with the more complex script?
On Wednesday, April 17, 2013 6:31:44 AM UTC-4, Fadel Chafai wrote:
Hello,
I have a strange behavior with a custom_score query ( normally the
script applied to the score of the documents returned by the query )
here is my prob:
I have a total of 440 hits with "script": "if (doc ['boost_category']
empty == 'false'.) {return doc ['boost_category'] value * _score.} else
{return _score} "
and 4977 hits returned using the function: "script": "_score"
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.