ProximityQueryNode dosen't allow distance parameter to be 0

2016-10-31 Thread Jigar Shah
In some cases where tokens are indexed at same position. e.g. using (synonym filter). Queryparser Flexible API dosen't allow to create ProximityQueryNode with distance '0'. {code} if (type == Type.NUMBER) { if (distance <= 0) { throw new QueryNodeErr

ProximityQueryNode

2013-02-21 Thread Carsten Schnober
Hi, I'm interested in the functionality supposedly implemented through ProximityQueryNode. Currently, it seems like it is not used by the default QueryParser or anywhere else in Lucene, right? This makes perfectly sense since I don't see a Lucene index store any notion of sentences,