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

Reply via email to