You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Varun Thacker (JIRA)" <ji...@apache.org> on 2018/06/06 22:03:00 UTC

[jira] [Created] (SOLR-12457) Multi valued field sorting doesn't work on trie fields

Varun Thacker created SOLR-12457:
------------------------------------

             Summary: Multi valued field sorting doesn't work on trie fields
                 Key: SOLR-12457
                 URL: https://issues.apache.org/jira/browse/SOLR-12457
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 7.1
            Reporter: Varun Thacker


When I go to sort on a multi-valued field in a 2 shard collection, which has trie fields the query fails.

To reproduce , we need 2+ shards , some docs that don't have any value for the field and a "desc" sort criteria.

Here's my schema
{code:java}
<dynamicField name="*_is" type="int" indexed="true" stored="true" multiValued="true" docValues="true"/>
<fieldType class="solr.TrieIntField" docValues="true" name="int" positionIncrementGap="0" precisionStep="0"/>

<dynamicField name="*_i" type="pint" indexed="true" stored="true" multiValued="true"/>
<fieldType name="pint" class="solr.IntPointField" docValues="true"/>

{code}
Now If I add a few docs
{code:java}
[
{"id" : "1", "test_is" : ["1", "2", "3", "4", "5"], "test_i" : ["1", "2", "3", "4", "5"]},
{"id" : "2", "test_is" : ["1", "2", "3", "4", "5"], "test_i" : ["1", "2", "3", "4", "5"]},
{"id" : "3", "test_is" : ["1", "2", "3", "4", "5"], "test_i" : ["1", "2", "3", "4", "5"]},
{"id" : "4"},
{"id" : "5"},
{"id" : "6"}
]{code}
Works:

[http://localhost:8983/solr/gettingstarted/select?q=*:*&sort=field(test_i,max)%20desc]

 

Doesn't Work:

[http://localhost:8983/solr/gettingstarted/select?q=*:*&sort=field(test_is,max)%20desc]

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org