lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rasik Pandey" <rasik.pan...@ajlsm.com>
Subject java.lang.UnsupportedOperationException
Date Fri, 17 Jan 2003 16:29:06 GMT
Hello,

Can anyone explain we I would be seeing this when re-using a query
(MultiTermQuery or PrefixQuery, or any Query that doesn't implement the
new createWeight() method) object? The first search with this query
works fine.

 
java.lang.UnsupportedOperationException
        at org.apache.lucene.search.Query.createWeight(Query.java:114)
        at
org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:202
)
        at org.apache.lucene.search.Query.weight(Query.java:121)
        at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:125)
        at
org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:153)
        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:91)
        at org.apache.lucene.search.Hits.<init>(Hits.java:81)
        at org.apache.lucene.search.Searcher.search(Searcher.java:74)
        at org.apache.lucene.search.Searcher.search(Searcher.java:68)


Thanks,
Rasik


--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message