You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Jeff French <je...@mdbconsulting.com> on 2007/09/09 21:23:56 UTC

Question about Qsol parser and phrase searches

I have a document that contains the phrase "recent stent placement". Here is
the result of some queries using the Qsol parser:

  "recent stent placement"  => YES
  "recent placement" => YES
  "recent placement":0  => NO
  "recent placement":1  => YES

where YES/NO indicates whether the document was returned. The "recent
placement" query result surprised me, as I had expected it not to return the
document. From the other queries, it looks like phrase searches have a
default slop of one. Is that correct? If so, is there a way to default to no
slop, preferrably without changing all of our queries?

Thanks for any pointers.

  Jeff
-- 
View this message in context: http://www.nabble.com/Question-about-Qsol-parser-and-phrase-searches-tf4410480.html#a12582067
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Question about Qsol parser and phrase searches

Posted by Mark Miller <ma...@gmail.com>.
The default slop is one and it really should be 0. Sorry about the slip 
up Jeff and thanks for catching it. I'll make an adjustment, and a 
method to allow changing the default anyway, and then point you to an 
updated jar.

- Mark

Jeff French wrote:
> I have a document that contains the phrase "recent stent placement". Here is
> the result of some queries using the Qsol parser:
>
>   "recent stent placement"  => YES
>   "recent placement" => YES
>   "recent placement":0  => NO
>   "recent placement":1  => YES
>
> where YES/NO indicates whether the document was returned. The "recent
> placement" query result surprised me, as I had expected it not to return the
> document. From the other queries, it looks like phrase searches have a
> default slop of one. Is that correct? If so, is there a way to default to no
> slop, preferrably without changing all of our queries?
>
> Thanks for any pointers.
>
>   Jeff
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org