Should the "script fields" feature have access to doc._score?

Hi,

I was trying to use the script fields feature to add a field based on the
score from a custom_score_query and it's doesn't seem to be working. Does
this sound like something that should be working?

So basically, something like this:

query
custom_score_query

script_fields
someField
script: something that uses doc._score/doc.score

Thanks.

Roly

--
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 tried something like this:

{
"query": {
"custom_score": {
"query": {
"match_all": {}
},
"script": "_score * 3"
}
},
"script_fields": {
"theRealScore": {
"script": "doc._score / 3"
}
}
}

On Monday, February 25, 2013 11:21:46 AM UTC-5, Roly Vicaria wrote:

Hi,

I was trying to use the script fields feature to add a field based on the
score from a custom_score_query and it's doesn't seem to be working. Does
this sound like something that should be working?

So basically, something like this:

query
custom_score_query

script_fields
someField
script: something that uses doc._score/doc.score

Thanks.

Roly

--
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.

Hi!

Is there any updates on the subject? I`m facing a similar situation, when I need to get my complex score in 'script_fields'.