How Script Filters are implemented internally

Hi,

I'm working on a native ElasticSearch plugin (using the Java API). I was
logging stuff to stdout to debug some things, and I noticed two things:

  • The script was running non-deterministically on the various documents,
    which makes sense, and
  • The script was running more than once per document. Which seems like
    a waste?

I've been browsing the source code trying to find where's this mapping
[Documents] => [Filtered documents], with no luck. Does anyone know how the
script filters know exactly, so that maybe we could find out why scripts
are running more than once per document?

Cheers!

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

Could you provide some sample code which demonstrates this?

ta

Clint

On Thu, May 2, 2013 at 6:22 PM, Txus josep.m.bach@gmail.com wrote:

Hi,

I'm working on a native ElasticSearch plugin (using the Java API). I was
logging stuff to stdout to debug some things, and I noticed two things:

  • The script was running non-deterministically on the various
    documents, which makes sense, and
  • The script was running more than once per document. Which seems
    like a waste?

I've been browsing the source code trying to find where's this mapping
[Documents] => [Filtered documents], with no luck. Does anyone know how the
script filters know exactly, so that maybe we could find out why scripts
are running more than once per document?

Cheers!

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

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