Catch the IndexResponse to launch some operations after the indexation step


(Yves) #1

Hi,

I need to make some operation after the indexation step, and I don't see
where can I catch the IndexResponse in a plugin. I make some analyzer but
is not here because this is run before the indexation, so there are some
method to make a plugin or script run after the indexation? (and have a
reference to the document which be indexed during the indexation).

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


(Alexander Reelsen) #2

Hey,

there are listeners for this, which you can register in a custom written
plugin. There is a class called IndexingOperationListener, which can using
the IndexingService.

--Alex

On Thu, Aug 29, 2013 at 2:42 PM, Yves yves.lerumeur@gmail.com wrote:

Hi,

I need to make some operation after the indexation step, and I don't see
where can I catch the IndexResponse in a plugin. I make some analyzer but
is not here because this is run before the indexation, so there are some
method to make a plugin or script run after the indexation? (and have a
reference to the document which be indexed during the indexation).

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


(system) #3