You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2009/08/17 17:43:14 UTC
[jira] Updated: (LUCENE-1818) contrib-spatial
java.lang.UnsupportedOperationException on QueryWrapperFilter.getDocIdSet
[ https://issues.apache.org/jira/browse/LUCENE-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Miller updated LUCENE-1818:
--------------------------------
Attachment: LUCENE-1818.patch
Thanks Martin! Kind of surprised that we don't have a test that would catch this ...
It was a mistake in 1771 - queryWeight to createWeight instead of weight - my bad.
Here is the patch - I should add a test that catches this as well (not in the patch yet).
- Mark
> contrib-spatial java.lang.UnsupportedOperationException on QueryWrapperFilter.getDocIdSet
> -----------------------------------------------------------------------------------------
>
> Key: LUCENE-1818
> URL: https://issues.apache.org/jira/browse/LUCENE-1818
> Project: Lucene - Java
> Issue Type: Bug
> Components: contrib/spatial
> Affects Versions: 2.9
> Environment: Mac OS X 10.5.8, Lucene 2.9-SNAPSHOT
> Reporter: Martin Ruckli
> Assignee: Mark Miller
> Attachments: LUCENE-1818.patch
>
>
> 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!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org