Hi
I found a solution. I am going to Configured Update Request
Processors, that I have seen in:
http://wiki.apache.org/solr/UpdateRequestProcessor
If I developed a custom class extend UpdateRequestProcessorFactory,
I'll have access to :
* SolrQueryRequest req. (Object request)
* SolrQueryResponse rsp. (Object response)
* UpdateRequestProcessor next. (Object Processor, contain stream with
updated data)
Configuring solrconfig.xml I can include my custom processor on Update
handler (solr.XmlUpdateRequestHandler), selecting my UpdateChain. This
way seems independent of handler Solr is using for update process, and
allow include events associated to updated records after commit event.
Thanks
El 04/02/2013 9:03, Miguel escribió:
Hi everybody
Please, I need to know if anybody has done similar something.
I have to developed a notification when commit event hapened on Solr
server, but I have to know updated records for creating correctly the
notification. Develop java class extends of AbstractSolrEventListener,
I don't see how to get updated data associated to commit event.
Thanks for help
El 31/01/2013 9:32, Miguel escribió:
Hi
After to study apache solr documentation, I think only way to know
update records (modify, delete an insert actions) is developed a
class extends org.apache.solr.servlet.SolrUpdateServlet.
In this class, I can access updated record information go into Apache
solr server.
Somebody can confirm me, that this way is the best way? or is there
any options?
thanks
El 30/01/2013 13:39, Miguel escribió:
Hi
I have to developed a function that must comunicate with webservice and
this function must execute after each time commits.
My doubt;
it's possible get that records had been updated on solr index?
My function must send information about add, updated and delete records
from solr index to external webservice, and this information must be
send after commit event.
I have read wiki apache solr and it seems the best way is create
listener with event=postCommit, but I have seen example
"solr.RunExecutableListener" and I don't see how to know records
associated to commit event.
Example Solrconfig.xml:
<!-- A postCommit event is fired after every commit
-->
<listener event="postCommit" class="solr.RunExecutableListener">
Thanks.