Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2691

Custom filter implementations must provide proper implementations of the #equals() and #hashCode() methods.

    Details

      Description

      The filters ChainedFilter, DistanceFilter and SpatialHashFilter does not have their own implementations of the #equals() and #hashCode() methods. A filter may be used as a key for the Lucene's QueryCache and this cache requires that all queries (a filter is a query) must provide proper implementations of the #equals() and #hashCode() methods. The absence of the implementations for this methods may lead to incorrect results of a query execution.

      Btw. I think Hibernate Search should allow to configure different QueryCache and QueryCachingPolicy.

        Attachments

          Activity

            People

            • Assignee:
              golovnin Andrej Golovnin
              Reporter:
              golovnin Andrej Golovnin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: