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

contrib-spatial java.lang.UnsupportedOperationException on QueryWrapperFilter.getDocIdSet

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9
    • Fix Version/s: 2.9
    • Component/s: modules/spatial
    • Labels:
      None
    • Environment:

      Mac OS X 10.5.8, Lucene 2.9-SNAPSHOT

    • Lucene Fields:
      New, Patch Available

      Description

      We use in our Project (which is in the devel phase) the latest Snapshot release of lucene. After i updated to the latest Snapshot a few days ago one of our JUnit tests fails and throws the following error:

      java.lang.UnsupportedOperationException
      at org.apache.lucene.search.Query.createWeight(Query.java:91)
      at org.apache.lucene.search.QueryWrapperFilter.getDocIdSet(QueryWrapperFilter.java:72)
      at org.apache.lucene.misc.ChainedFilter.getDISI(ChainedFilter.java:150)
      at org.apache.lucene.misc.ChainedFilter.initialResult(ChainedFilter.java:173)
      at org.apache.lucene.misc.ChainedFilter.getDocIdSet(ChainedFilter.java:211)
      at org.apache.lucene.misc.ChainedFilter.getDocIdSet(ChainedFilter.java:141)
      at org.apache.lucene.search.ConstantScoreQuery$ConstantScorer.<init>(ConstantScoreQuery.java:116)
      at org.apache.lucene.search.ConstantScoreQuery$ConstantWeight.scorer(ConstantScoreQuery.java:81)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:244)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:172)
      at org.apache.lucene.search.Searcher.search(Searcher.java:183)
      at org.hibernate.search.query.QueryHits.updateTopDocs(QueryHits.java:100)
      at org.hibernate.search.query.QueryHits.<init>(QueryHits.java:61)
      at org.hibernate.search.query.QueryHits.<init>(QueryHits.java:51)
      at org.hibernate.search.query.FullTextQueryImpl.getQueryHits(FullTextQueryImpl.java:373)
      at org.hibernate.search.query.FullTextQueryImpl.list(FullTextQueryImpl.java:293)
      ...

      I think it appeared after the Hudson build 917... and the following commit of the Query.java http://hudson.zones.apache.org/hudson/job/Lucene-trunk/917/changes#detail4 and is in connection with this JIRA issue: LUCENE-1771
      I hope i'm at the right place and that you can fix it. Thanks!

        Attachments

        1. LUCENE-1818.patch
          2 kB
          Mark Miller
        2. LUCENE-1818.patch
          4 kB
          Mark Miller

          Issue Links

            Activity

              People

              • Assignee:
                markrmiller@gmail.com Mark Miller
                Reporter:
                martin.ruckli Martin Ruckli
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: