Reputation: 21
I`m using solr-4.3.1 on ubuntu and start solr over jetty. I have custom schema.xml and all fields of query are in it. My collection "collection1" consists of 8 shards I try grouping data by some field and i use:
http://solr-node1:8983/solr/collection1/select/?q=*:*&group=true&group.field=rgn_str
Solr correct answer and provides the results, but when I try to use the group.query
http://solr-node1:8983/solr/collection1/select/?q=*:*&group=true&group.query=rgn_str:test
an error "shard 7 did not set sort field values (FieldDoc.fields is null); you must pass fillFields=true to IndexSearcher.search on each shard"
The documentation for solr I could not find how to specify this parameter. How to do it?
To repeat the problem, do the following
Upvotes: 0
Views: 494
Reputation: 21
"Wait, you can't do this. You're changing the number of shards? Your original startup specified a single shard, bringing up another node and calling it "shard2" isn't consistent.
If you'd brought up a single shard while telling SolrCloud that there were 2 shards, you shouldn't have been able to index anything.
So what are you trying to do? Create your cluster with the number of shards you intend it to have. Or split shards. Or something, but just bringing up a second node and calling it "shard2" isn't supported." - Erick Erickson.
Great thank you to him for that.
Upvotes: 0