lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Proximity of More than Single Words?
Date Fri, 22 Jan 2010 05:51:18 GMT
Yes, that's just a phrase slop, allowing for variable gaps between words.
I *believe* the Surround QP that works with Span family of queries does handle what you are
looking for.


Otis
--
Sematext -- http://sematext.com/ -- Solr - Lucene - Nutch



----- Original Message ----
> From: T. R. Halvorson <trh@midrivers.com>
> To: java-user@lucene.apache.org
> Sent: Tue, January 19, 2010 9:40:07 AM
> Subject: Proximity of More than Single Words?
> 
> For proximity expressions, the query parser documentation says, "use the tilde, 
> "~", symbol at the end of a Phrase." It gives the example "jakarta apache"~10
> 
> Does this mean that proximity can only be operated on single words enquoted in 
> quotation marks? To clarify the question by comparision, on some systems, the w/ 
> proximity operator lets one search for:
> 
> crude w/4 "west texas"
> 
> or
> 
> "spot prices" w/3 "gulf coast"
> 
> The Lucene documentation seems to imply that such searches cannot be constructed 
> in any straightforward way (although there might be a way to get the effect by 
> going around Cobb's Hill). Or does the Lucene syntax allow the examples to be 
> cast as:
> 
> "crude "west texas""~4
> 
> or
> 
> ""spot prices" "gulf coast""~3
> 
> If not, is it a fair assessment to say that in Lucene, proximity is limited to 
> being a part of phrase searching, and its function is exhausted by allowing a 
> slop factor in matching phrases.
> 
> Thanks in advance for any help with this.
> 
> T. R.
> trh@midrivers.com
> http://www.linkedin.com/in/trhalvorson
> www.ncodian.com
> http://twitter.com/trhalvorson 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


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


Mime
View raw message