What _is_ your expectation? You haven't provided any examples of what your input and expectations _are_.
You might review: https://wiki.apache.org/solr/UsingMailingLists string types are case-sensitive for instance, so that's one thing that could be happening. You can also specify sortMissingFirst/Last to determine where docs with missing fields appear in the results. Best, Erick On Fri, Jun 29, 2018 at 3:13 AM, Vijay Tiwary <vijaykr.tiw...@gmail.com> wrote: > Hello Eric, > > title is a string field > > On Wed, 27 Jun 2018, 9:21 pm Erick Erickson, <erickerick...@gmail.com> > wrote: > >> what kind of field is title? text_general or something? Sorting on a >> tokenized field is usually something you don't want to do. If a field >> has aardvard and zebra, how would it sort? >> >> There's usually something like alphaOnlySort. People often copyField >> from "title" to "title_sort" and search on "title" and sort on >> title_sort. >> >> alphaOnlySort uses KeywordTokenizer and LowercaseFilterFactory. >> >> Best, >> Erick >> >> On Wed, Jun 27, 2018 at 12:45 AM, Vijay Tiwary <vijaykr.tiw...@gmail.com> >> wrote: >> > Hello Team, >> > >> > I have multiple collection on solr (5.4.1) cloud based on year >> > content2107 >> > content2018 >> > >> > Also I have a collection "content" which does not have any data. >> > >> > Now if I query them as follows >> > http://host:port/solr/content/select?q=*:*&collection=content2107, >> > content2108&sort=title >> > asc >> > >> > Where title is string field then results are not getting sorted as per >> the >> > expectation. Also note value for title is not present for some documents. >> > >> > Please help. >>