Just tried this on master and can't reproduce.

Didn't try 5.4.

Any chance this is a multiValued field? That can sometimes confuse things.

Best,
Erick

On Fri, Jul 20, 2018 at 2:50 AM, Vijay Tiwary <vijaykr.tiw...@gmail.com> wrote:
> Hello Erick
>
> We are using string field and data is stored in lower case while indexing.
> We have alias set up to query multiple collections simultaneously.
> alias=collection1, collection2
> If we are querying through alias then sorting is broken. For e.g. Results
> for descending sort are as follows. (Empty lines are documents with no
> value for the field on which sorting is applied).
> It seems there is an issue in solr while aggregating the results of
> individual
> shard responses
> d
> d
> d
>
>
> b
> b
> b
> c
> c
>
> b
> b
>
>
>
> On Fri, 29 Jun 2018, 9:16 pm Erick Erickson, <erickerick...@gmail.com>
> wrote:
>
>> 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.
>> >>
>>

Reply via email to