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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
