Native script, doc, fields, source - which on fits best?

Hi,

I am currently updating my entity resolution plugin. I was comparing docs
based on doclookup (doc()). Seems it is wrong from a functional point of
view. I have to switch, and I'm now wondering :

  • should I use sourceLookup (source()) or fieldsLookup (fields()) ?
  • if fields, how can I do (I tried, but failed) ? Any example ?

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html
is not cristal cleear to me.

Thanks.

Yann

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

Yann,

Some good documentation on mvel is here:

http://mvel.codehaus.org/MVEL%202.0%20Portal

This post inspired my own example mvel script as part of a combinatorial
hierarchy facet "add-on" I wrote. It shows a simple example that is glued
into ES and accesses the fields that are stored by ES within _source:

http://elasticsearch-users.115913.n3.nabble.com/facet-and-grouping-td4020055.html

Hope this helps!

Brian

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