Thanks for the test case.  I just checked in a fix for this problem.

Doug

Rasik Pandey wrote:
Doug,
It is a attached. I added a WildCardQuery to the TestWildcard class with
the Term text being "m*a*", it executes fine as a WildCardQuery, but
when I wrap it in a BooleanQuery, I get the exception I sent previously.
Let me know if I should enter a bug report?

Thanks,
Rasik

-----Message d'origine-----
De : Doug Cutting [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 17 janvier 2003 20:47
À : Lucene Developers List
Objet : Re: java.lang.UnsupportedOperationException


Sounds like a bug.

Can you please supply a complete, self-contained test case? Ideally as a JUnit test class.

Thanks,

Doug

Rasik Pandey wrote:

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:2
02
)
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:[EMAIL PROTECTED]>

For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]

------------------------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to