You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Rasik Pandey <ra...@ajlsm.com> on 2003/01/17 17:48:38 UTC

RE : java.lang.UnsupportedOperationException

Actually, I wrap my original query in a new BooleanQuery and then I get
this exception.

-----Message d'origine-----
De : Rasik Pandey [mailto:rasik.pandey@ajlsm.com] 
Envoyé : vendredi 17 janvier 2003 17:29
À : 'Lucene Developers List'
Objet : java.lang.UnsupportedOperationException


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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>