lucene - Solr 4.3.1 error "you must pass fillFields=true to IndexSearcher.search" on using group.query -


i`m using solr-4.3.1 on ubuntu , start solr on jetty. have custom schema.xml , fields of query in it. collection "collection1" consists of 8 shards try grouping data field , use:

http://solr-node1:8983/solr/collection1/select/?q=*:*&group=true&group.field=rgn_str 

solr correct answer , provides results, when try use 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 null); must pass fillfields=true indexsearcher.search on each shard"

the documentation solr not find how specify parameter. how it?

to repeat problem, following

  1. start node1 of solrcloud (4.3.1 default configs) (java -dbootstrap_confdir=./solr/collection1/conf -dcollection.configname=myconf -dzkrun -jar start.jar)
  2. import collection1 -> shard1 data
  3. try group.query e.g. node1:8983/solr/collection1/select?q=:&group=true&group.query=somefiled:somevalue. important have hit on index data.
  4. the result is, there no error
  5. start node2 of solrcloud (java -djetty.port=7574 -dzkhost=localhost:9983 -jar start.jar)
  6. on node2 add new core collection1 -> shard2. default core "collection1" unload. have 1 collection on 2 shard. shard1 - have data, shard2 - no data.
  7. again try group.query node1:8983/solr/collection1/select?q=:&group=true&group.query=somefiled:somevalue.
  8. error: shard 0 did not set sort field values (fielddoc.fields null); must pass fillfields=true indexsearcher.search on each shard

"wait, can't this. you're changing number of shards? original startup specified single shard, bringing node , calling "shard2" isn't consistent.

if you'd brought single shard while telling solrcloud there 2 shards, shouldn't have been able index anything.

so trying do? create cluster number of shards intend have. or split shards. or something, bringing second node , calling "shard2" isn't supported." - erick erickson.

great thank him that.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -