Mike wrote:
When I do a search using q=*:* and then narrow down the result set
using a filter query, are there rules that are used for the sort order
in the result set? In my results I have a "name" field that appears to
be sorted descending in lexicographical order. For example:
<doc><str name="name">Wyoming</str></doc>
<doc><str name="name">Wynford</str></doc>
<doc><str name="name">Wrightstown</str></doc>
The field declaration is:
<field name="name" type="text" indexed="true" stored="true"> and this
is the first field that is defined that is of type text. I'm assuming
the ordering is arbitrary. I can easily setup a new field for sorting
based on the "string" type, but I'm curious what rules are deciding
the sort order in this example.
I'm using the dismax and the 1.4 release.
Mike
Sorry for the noise - I think I have just answered my own question. The
order in which docs are indexed determine the result sort order unless
overridden via sort query parameters :)