-->
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: Hibernate search for wild cards - left and right hand side
PostPosted: Mon Nov 17, 2014 6:52 am 
Newbie

Joined: Mon Nov 17, 2014 5:23 am
Posts: 1
Hi,
We have a requirement for wildcard search('%people%') on a table column. We have gone through Hibernate Search documentation, it says suffix wildcard query will cause performance issues. We have gone through blogs, found that we have to user ReverseStringFilter but did find any example using with it and it will solve half the problem of suffix query('%people').
But we are looking at a solution which will solve complete problem i.e searching for '%people%'.

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Hibernate search for wild cards - left and right hand side
PostPosted: Mon Jan 05, 2015 1:03 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
what we mean with that warning in the documentation is that a query like that will be quite slower than other full-text queries.
So avoid creating such a feature if it's not important in your use case, but if you are required to implement it you can still do it (don't let the warning scare you).

It might be fast enough - what we mean with the warning is that you might want to verify how it performs. With some luck it will be great, just don't take it for granted: depending on many factors, this might be slow.

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