On 7/9/2014 2:02 PM, EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions) wrote: > Here is the schema part. > > <field name="Name" type="text_general" indexed="true" stored="true" />
Your query is *:*, which is a constant score query. You also have a filter, which does not affect scoring. Since there is no score difference between different documents with your query results, the lack of a sort parameter means that you will most likely get the results in the order that Lucene returns them, which is completely indeterminate. There's probably some minute difference between the two queries at the Lucene level, possibly because the stemmer behaves differently with different case or just because the internal matching happens differently, which makes Lucene return the results in a different order. If you want to be absolutely in control of your result order when the query results in a constant score, you'll need to specify a sort parameter. Thanks, Shawn