lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Alves <lafa...@gmail.com>
Subject Re: Query rewriting/optimization
Date Mon, 22 Jun 2009 22:36:30 GMT
look at http://issues.apache.org/jira/browse/LUCENE-1567 (New flexible 
query parser)

This new parser allows for internally rewrites/optimizes Query, and it 
is backward compatible.


Preetham Kajekar wrote:
> Hi,
> I am wondering if Lucene internally rewrites/optimizes Query. I am 
> programatically generating Query based on various user options, and 
> quite often I have BooleanQueri'es wrapped inside BooleanQueries etc.
> Like,
> ((Src:Testing Dst:Test) (Src:Test2 Port:http)).
> In this case, would Lucene optimize to remove the unwanted 
> BooleanQueries ? Or more importantly, would these extra BooleanQueries 
> cause any performance problems and should I fix my code to have a 
> better Query ?
>
> Thanks,
> ~preetham
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
-Lafa



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