Document is not returned when searched using query parameter in solr

41 Views Asked by At

I updated a document in solr using the below query and it was successful.The document has other fields like organization_name,place etc apart from what is shown in the api below.

curl  -X POST -H 'Content-Type: application/json' 'http://localhost:8390/solr/collection/update?commit=true' -d '[{"id" : “12345”,”code” : {"set" : “500”}}]’
{
  "responseHeader":{
    "rf":1,
    "status":0,
    "QTime":11}}

Post update, when I tried to query solr with query parameter(q) as name, it does not return any document. At the same time, if I query using name as fq parameter, I see the document coming up fine.

This query doesnot work:-

http://localhost:8390/solr/collection/select?q=test&qf=content^0.1%20name_display_name^1.0&defType=edismax

But,this query works(with fq param),

http://localhost:8390/solr/collection/select?q=*%3A*&rows=1000&fq=ngram_info_organization_name:test

The field type of organization_name is string and its both indexed and stored.

This issue is seen only for the document that i updated. If I query for other documents which are not updated, i am able to see the results.

Please help to figure out why the document is not listed when I use the name with query parameter.

0

There are 0 best solutions below