Need some help with Custom Score Query

Binh,

Can you take a look at this also.

Thanks

On Thu, Jan 30, 2014 at 1:47 PM, Mukul Gupta mukulnitkkr@gmail.com wrote:

Binh,

I'm not able to access po field. It's giving me error:

Caused by: [Error: could not access: value; in class:
org.elasticsearch.index.fielddata.ScriptDocValues$Empty]
[Near : {... doc['po'].value ....}]

I think that is the reason why my score is always same. Everytime, it is
taking it as empty though all my docs contains this field. I have also
added it in my mapping. Can you please tell me why it is behaving like this
?

On Wed, Jan 29, 2014 at 10:34 PM, Binh Ly binh@hibalo.com wrote:

Just to clarify, can you post the scores of the 2 documents in question:

  1. script = "_score"

  2. script = "doc['po'].value"

Just curious to see the actual values.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/8df89eed-7b61-4227-a601-21a81e46b20a%40googlegroups.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAVTvp51u1Na_-SSnXmSQn7tPZV4V-VMrxDSf6LoLa%3Djjwb9cQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.