SOLR Updated docs missing from query -
SOLR Updated docs missing from query -
(still newbie; more questions)
i'm performing atomic updates on solr 4 records via http calls. working correctly after fixed problems urls.
but original problem still present: after update document, search queries no longer finding updated docs.
do need re-index updated document? atomic updates cause document fall out of index?
example: can search this:
http://solrfarm.gateway.cco:8983/solr/records/select/?q=firstname:(tomas) recordtype:(myrectype)&rows=100
and xml looks like:
<doc> <str name="id">collname-7276748</str> <str name="system">ohm liens</str> <long name="_version_">1464208859225653248</long> <bool name="optout">false</bool> </doc>
i want alter optout value "true" , happening url looks this:
http://prodsolr01.cco:8983/solr/records/update?stream.body=%3cadd%3e%3cdoc%3e%3cfield%20name=%22id%22%3ecollname-7276748%3c/field%3e%3cfield%20name=%22optout%22%20update=%22set%22%20%3etrue%3c/field%3e%3c/doc%3e%3c/add%3e&commit=true
decoded , formatted:
stream.body= <add> <doc> <field name="id">collname-7276748</field> <field name="optout" update="set" >true</field> </doc> </add> &commit=true
but, when run original query, record not returned. if search record explicitly, record:
http://solrfarm.gateway.cco:8983/solr/records/select/?q=id:(%22collname-7276748%22)%20&rows=100
so i'm confused why updated record no longer found query. need pass in original fields update command (i.e. "firstname" , "lastname" fields indexed originally)?
shouldn't plenty perform update?
again, i'm newbie , i'm not "getting" basic, help appreciated.
solr
Comments
Post a Comment