lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <nicolas.lale...@anyware-tech.com>
Subject Re: Decorating a Query
Date Thu, 15 Feb 2007 10:32:39 GMT
Le Jeudi 15 Février 2007 10:27, Chris Hostetter a écrit :
> : I wanted to implement my own query, query wich will be specific to my
> : application. The query I want to implement is in fact just a combinaison
> : of sevral already implemented queries. So acheive this, I do this kind of
>
> you can probably achieve your goal by simply making MyQuery.rewrite return
> the underlying query you want use  (make sure to call rewrite on it first
> though)

ok, got it. And it works. thanks !

And in fact I shouldn't override the weight(...) function. I have just looked 
to the prefix query source code.

cheers,

-- 
Nicolas LALEVÉE
Solutions & Technologies
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message