Search code examples
solrsolrcloud

SolrCloud in production - querying q=* gives numFound=0


So I have a three-node cluster deployed using a zookeeper. And successfully created test collection (3 shards). Then after I have

curl -X POST -H 'Content-Type: application/json' 'ec2FirstNodeIP:8983/solr/test/update' --data-binary ' [ { "f1" : "1", "f2" : "2", "f3" : "3" } ]'

I got {"responseHeader":{"status":0,"QTime":38} ...

However when I have curl "sameIP:8983/solr/test/select?wt=json&indent=true&q=*:*"

I am getting NumFound:0

But using the admin UI for updating the document, the query now returns the document image for admin UI

What am I missing?


Solution

  • To make document searchable we should commit. use commit=true

    ec2FirstNodeIP:8983/solr/test/update?commit=true this should work.