lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Are deleted words allowed in a sloppy phrase query?
Date Wed, 07 Jan 2004 00:46:19 GMT
On Jan 6, 2004, at 6:48 PM, Jim Hargrave wrote:
> I had hoped that I could use PhraseQuery as kind of a "fuzzy search on 
> phrases". It works as long as ALL of the query terms match in the 
> document. Doesn't the slop factor provide for added terms?
> For example:
> Text = "a b c d"
> Query = "a b e"~2
> Should the query match? We basically have on insertion in the query. 
> This doesn't seem to be the case for all my tests.

Nope, sorry... PhraseQuery doesn't work that way.  All terms in the 
query must be present in the field within the specified slop for it to 
be a hit.  (see


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message