Custom_score query

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"

thank you to explain to me this behavior ?

Thank you

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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"

thank you to explain to me this behavior ?

Thank you

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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"

thank you to explain to me this behavior ?

Thank you

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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"

thank you to explain to me this behavior ?

Thank you

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.