You can create a generalization of PheaseQueries, called SpanNearQueries. Those 
can have any other SpanQuery instances as childs, e.g. SpanTermQuery and 
SpanMultiTermQueryWrapper instances. As RangeQueries or Wildcards are 
internally subclasses of MultiTermQuery, you can use them wrapped in 
combination with SpanTermQuery and others. But beware: Slow like hell!

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de

> -----Original Message-----
> From: Henri Hein [mailto:he...@thinair.com]
> Sent: Tuesday, December 08, 2015 5:56 AM
> To: java-user@lucene.apache.org
> Subject: TermRangeQuery with Proximity
> 
> I saw this archived thread:
> http://mail-archives.apache.org/mod_mbox/lucene-java-
> user/201208.mbox/%3CCAJcVXktUtw9TN3thMhcvT0MBeww+LP_MCZSrgF3a
> tomzjku...@mail.gmail.com%3E
> 
> I am trying to do something similar.  I can do a phrase or proximity search
> with PhraseQuery/PhraseQuery.Builder.  I can do a range search with
> TermRangeQuery.  I don't know how to combine them and the above
> archived
> thread seems to indicate it's not possible.  Has this changed?
> 
> Thanks,
>   - Henri Hein
> 
> Thin Air Labs


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

Reply via email to