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

Weight is not serializable for some of the queries

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      Patch Available

      Description

      In order to work with ParallelMultiSearcher, Query weights need to be serializable. The interface Weight extends java.io.Serializable, but it appears that some of the newer queries unnecessarily store global state in their weights, thus causing serialization errors.

        Attachments

        1. lucene-serialization.diff
          4 kB
          Kyle Maxwell
        2. lucene-serialization.diff
          12 kB
          Doron Cohen

          Activity

            People

            • Assignee:
              doronc Doron Cohen
              Reporter:
              fizx Kyle Maxwell
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: