lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: search optimization - help
Date Wed, 25 May 2005 17:28:20 GMT
On Wednesday 25 May 2005 11:21, Kapil Chhabra wrote:
> 1. My application requires documents to be sorted on one of my indexed
> fields everytime.
> I use the hits.setSort() method to specify the field.
> In short my application will never use the scores generated by lucene
> search.
> Is calculating scores a overhead? Can I skip the process somehow?

It's an overhead in theory, but hardly so in practice.
One would need to write a special Scorer to skip calculating scores.

> 
> 
> 
> 2. let C = A or B
> 
> In a normal scenario, if A is true the value of B is not checked and C
> is set to true. The value of B is checked only if A is false.
> I guess this is not what lucene does as it has to calculate the score
> for the document. Am i right?

Yes.

> If yes, I there any way I can do it using the normal scenario?

One would also need to write a special Scorer to do this.

Regards,
Paul Elschot


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