-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: earliest possible time to run full text query?
PostPosted: Sun Mar 08, 2009 2:34 pm 
Newbie

Joined: Sat Jan 31, 2009 7:39 pm
Posts: 5
I have a use case that requires me to run a full text query to determine if the document just stored matches a configured query.

I'm using hibernate search with hibernate.search.worker.execution = async.

Is there an event I can observe to get the documentId of the document after the async worker has commited it to disk?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 09, 2009 7:25 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
No, there is no event you could listen to. If you are running worker in async mode you don't know when the document is indexed. If you switch to sync you know that you can execute your search once the transaction has successfully commited.

BTW, do you really have to run a query to figure out whether your object matches a certain criteria?

--Hardy


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 09, 2009 1:35 pm 
Newbie

Joined: Sat Jan 31, 2009 7:39 pm
Posts: 5
hardy.ferentschik wrote:
BTW, do you really have to run a query to figure out whether your object matches a certain criteria?


I hear your point. The challenge I have is that the "certain criteria" is expressed as a full text search. I haven't seen a way to apply a fts query against an object at hand prior to committing.

Thanks again for your time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.