-->
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: Filter not in (or != )
PostPosted: Tue Dec 01, 2009 7:59 am 
Newbie

Joined: Wed Oct 07, 2009 7:34 am
Posts: 12
i'm trying to create a NOT IN filter, but i cant find how to do this

Anyone can help me, please?

I can search, for example, all peple called "Hannibal" , but i want to find all people.name != "hannibal"

Thanks you


Top
 Profile  
 
 Post subject: Re: Filter not in (or != )
PostPosted: Tue Dec 01, 2009 1:59 pm 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

your question is really very vague. I am not even sure if you are using Hibernate Search.
If so and you want to use a QueryParser have a look at Lucene's query language.
You can also build queries programmatically. Have a look at BooleanQuery.

--Hardy


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.