lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rasik Pandey" <rasik.pan...@ajlsm.com>
Subject RE : java.lang.UnsupportedOperationException
Date Mon, 20 Jan 2003 12:19:03 GMT
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:cutting@lucene.com] 
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:lucene-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:lucene-dev-help@jakarta.apache.org>
> 


--
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