Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1481

Sort and SortField does not have equals() and hashCode()

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.9
    • core/query/scoring
    • None
    • New, Patch Available

    Description

      During developing for my project panFMP I had the following issue:
      I have a cache for queries (like Solr has, too) for query results. This cache also uses the Sort/SortField as key into the cache. The problem is, because Sort/SortField does not implement equals() and hashCode(), you cannot store them as cache keys. To workaround, currently I use Sort.toString() as cache key, but this is not so nice.

      In corelation with issue LUCENE-1478, I could fix this there in one patch together with the other improvements.

      Attachments

        1. LUCENE-1481.patch
          2 kB
          Uwe Schindler

        Issue Links

          Activity

            People

              mikemccand Michael McCandless
              uschindler Uwe Schindler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: