On Dec 30, 2009, at 3:21 PM, Prasanna R wrote: > All documents matched for Wildcard and Prefix queries get the same score as > they are scored as a ConstantScoreQuery. Example query - title:abc* > > In such cases, what determines the ordering of the results? Is it simply the > same order in which those document terms appeared when enumerating through > the terms of the field matched in the index?
I'm assuming they are just in order of internal Lucene doc id, but I'd have to look for sure. There was also some changes to Lucene that allowed the collectors to take docs out of order, but again, I'd have to check to see if that is the case. > > Also, would it be possible to specify criteria determining the ordering of > such matches? I am assuming that should be possible but have little idea how > that could be done. Kindly provide guidance/help. Sort? What problem are you trying to solve? -Grant