You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "SANJAY." <sa...@gmail.com> on 2018/01/06 18:25:08 UTC
grouping in solr cloud shard replicas
Hi,
Please let me know how to achieve group by in solr could env.
We tried grouping in solr cloud shard replicas to fetch unique search result
from solr for custom field we .
we are getting exception saying unexpected docvalues type "SORTED_SET
(expected SORTED)"
We are using solr cloud and collection having 2 shared replicas .We have
created custom field type which is using solr.TextField class .
Please suggest me the best possible way to fetch the unique search result.
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re: grouping in solr cloud shard replicas
Posted by Shawn Heisey <ap...@elyograg.org>.
On 1/6/2018 11:25 AM, SANJAY. wrote:
> Please let me know how to achieve group by in solr could env.
> We tried grouping in solr cloud shard replicas to fetch unique search result
> from solr for custom field we .
>
> we are getting exception saying unexpected docvalues type "SORTED_SET
> (expected SORTED)"
This typically happens when you index some data and then change the
multivalued parameter on a field that has docValues without deleting the
index and starting over.
When making that kind of change to the schema, you must completely
delete the index directory for all cores in the collection, then reload
the collection or restart Solr, and reindex from scratch.
This rather extreme step is required because the Lucene index records
certain kinds of information about the docValues for each field that has
them, and if what is expected doesn't match what's actually in the
index, a severe error is encountered.
Thanks,
Shawn