You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by jefferyyuan <yu...@gmail.com> on 2012/10/24 17:43:37 UTC
Monitor Deleted Event
When some docs are deleted from Solr server, I want to execute some code -
for example, add an record such as {contentid, deletedat} to another solr
server or database.
How can I do this through Solr or Lucene?
Thanks for any reply and help :)
--
View this message in context: http://lucene.472066.n3.nabble.com/Monitor-Deleted-Event-tp4015624.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Monitor Deleted Event
Posted by Amit Nithian <an...@gmail.com>.
Since Lucene is a library there isn't much of a support for this since
in theory the client application issuing the delete could also then do
something else upon delete. solr on the other hand being a layer (a
server layer) sitting on top of lucene, it makes sense for hooks to be
configured there.
Since here you can intercept the delete event, you can do what you
wish with it (i.e. in your case maybe send a notification event to
another solr server to add a record).
On Wed, Oct 24, 2012 at 9:19 AM, jefferyyuan <yu...@gmail.com> wrote:
> Thanks very much :)
>
> This is what I am looking for.
> And I also wonder whether this some thing as DeleteEvent in Solr or Lucene?
>
> Is there a way to do this in Lucene? - Not familiar with Lucene yet :)
> As I may choose to do this in lower level...
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Monitor-Deleted-Event-tp4015624p4015641.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: Monitor Deleted Event
Posted by jefferyyuan <yu...@gmail.com>.
Thanks very much :)
This is what I am looking for.
And I also wonder whether this some thing as DeleteEvent in Solr or Lucene?
Is there a way to do this in Lucene? - Not familiar with Lucene yet :)
As I may choose to do this in lower level...
--
View this message in context: http://lucene.472066.n3.nabble.com/Monitor-Deleted-Event-tp4015624p4015641.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Monitor Deleted Event
Posted by Amit Nithian <an...@gmail.com>.
I'm not 100% sure about this but looks like update processors may help?
http://wiki.apache.org/solr/UpdateRequestProcessor
It looks like you can put in custom code to execute when certain
actions happen so sounds like this is what you are looking for.
Cheers
Amit
On Wed, Oct 24, 2012 at 8:43 AM, jefferyyuan <yu...@gmail.com> wrote:
> When some docs are deleted from Solr server, I want to execute some code -
> for example, add an record such as {contentid, deletedat} to another solr
> server or database.
>
> How can I do this through Solr or Lucene?
>
> Thanks for any reply and help :)
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Monitor-Deleted-Event-tp4015624.html
> Sent from the Solr - User mailing list archive at Nabble.com.