0

I have a collection in apache solr cloud (version 9.2) which contain approx 4.3 million documents. Each document has approx 11 fields. Id, cityid, countyid, color, lastupdated, latlong, geometryrpt etc. Where is of type string and unique key, latlong field contain value like this ("40.54, -74.56") and geometryrpt field is the copy field of latlong and of type location_rpt. Color field is stored=true and indexed=false.

When I am doing updates on this collection using pysolr library using fieldsupdate={'color':'set'} and soft commit after every batch update Color values gets updated but my spatial queries( bbox or geofilter) return 0 result that were returning proper count before running atomic updates. When I update latlong field also along with color field then spatial query works fine. Is this any bug or I am missing something.

I have doubled checked the fields types of color and geometryrpt fields, data which I am updating, my query everything. But every time spatial query works fine before every update but stopped working after updates. I can see the updates color in the document but spatial queries returns 0.

Abhijit Bashetti
  • 8,518
  • 7
  • 35
  • 47
  • What is the setting for the latlon-field set to? All fields (that aren't copyfield destinations, iirc) needs to be set as stored (unless it's a field type where docvalues can be used as the stored value iirc) to have them retain their value. – MatsLindh Jun 30 '23 at 11:04

0 Answers0