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 QueryNodeError(new MessageImpl(
QueryParserMessages.PARAMETER_VALUE_NOT_SUPPORTED, "distance",
distance));
} else {
this.distance = distance;
}
{code}
Is this a bug ?
