-->
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: MultifieldQueryParser and Wildcards
PostPosted: Wed Sep 01, 2010 9:34 am 
Regular
Regular

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

is it possible to generate querys with the multifield queryparser that contains (leading) wildcards?
(using HS 3.0.1)


Top
 Profile  
 
 Post subject: Re: MultifieldQueryParser and Wildcards
PostPosted: Thu Sep 02, 2010 7:45 am 
Hibernate Team
Hibernate Team

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


it should be possible. I think there should be a MultiFieldQueryParser.setAllowLeadingWildcard(boolean b) method. The default is not to allow leading wild cards for performance reasons. You might also run into the problem of too many query terms, because Lucene will have to expand your search query. Do you really need leading wild cards? If so, filtering might be a better solution.

All that said, I have to admit that I haven't worked for a long time with such a old version of Search. If you can I recommend you do upgrade to the latest stable version.

--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.