-->
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.  [ 2 posts ] 
Author Message
 Post subject: adding Criteria to Fulltextsession
PostPosted: Wed Mar 03, 2010 9:33 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
Hi,

i'm using HS 3.0.1 and tryin to add a/some criteria to my successfully build fulltextquery. Using:
Code:
ftQuery.setCriteriaQuery(criteria);


does have no effect on the query itself. Is there a possibility to add those criteria (/restrictions) on the lucene level, or what am i missing here?


Top
 Profile  
 
 Post subject: Re: adding Criteria to Fulltextsession
PostPosted: Thu Mar 04, 2010 7:35 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
mixing criteria and fulltext is not supported, that would be extremely inefficient.
Have a look at fulltext filters for similar functionality, but you'll have to add to the index enough metadata to be able to filter properly.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.