lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jigar Shah <jigaronl...@gmail.com>
Subject ProximityQueryNode dosen't allow distance parameter to be 0
Date Mon, 31 Oct 2016 20:28:41 GMT
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 ?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message