-->
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.  [ 4 posts ] 
Author Message
 Post subject: PhraseQuery with large slop, performance impact?
PostPosted: Fri May 20, 2011 12:25 pm 
Newbie

Joined: Thu May 19, 2011 8:04 pm
Posts: 6
Hello,

I have a set of fields which are quite large and runs to around 6000 words. I need to search for text that matches all the words not necessarily in the same order.

So if I set a query as : (Field1: "searching for all the words in the text"~6000 ) (Field2: "searching for all the words in the text"~6000 )

The search is very slow, though it achieves what I am looking for. I always need to execute within 300 ms.

Is there a better way to do this?

Thanks,
AL


Top
 Profile  
 
 Post subject: Re: PhraseQuery with large slop, performance impact?
PostPosted: Tue May 24, 2011 5:20 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
The search is very slow, though it achieves what I am looking for. I always need to execute within 300 ms.

I don't know what you're looking for :)
but have you considered to not use slopping at all ? it would have a similar effect, just way more efficient.

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


Top
 Profile  
 
 Post subject: Re: PhraseQuery with large slop, performance impact?
PostPosted: Wed May 25, 2011 3:49 pm 
Newbie

Joined: Thu May 19, 2011 8:04 pm
Posts: 6
Hi,

If I remove slop then it always tries to do an exact match as it appears. I want to search all the words anywhere in the document.


Top
 Profile  
 
 Post subject: Re: PhraseQuery with large slop, performance impact?
PostPosted: Wed May 25, 2011 4:50 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
If I remove slop then it always tries to do an exact match as it appears. I want to search all the words anywhere in the document.

the default field settings should work for this case; are you using some special analyzer? did you disable tokenisation, or are using some other advanced option?

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