-
mkalkbrenner โ
committed 8e3cf13e on 4.x
Issue #3299889 by mpotdar, mkalkbrenner: DeleteQuery for orphaned child...
-
mkalkbrenner โ
committed 8e3cf13e on 4.x
- Status changed to Fixed
over 1 year ago 2:37pm 22 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 3:33pm 15 November 2023 - ๐บ๐ธUnited States pdcarto
I'm not sure that this actually fixed the problem, or possibly I'm seeing a different problem. I see a `deleteItems` task in `search_api_task` with 1680 ids. Solr fails with a "too many boolean clauses" message.
In my case, a parent object is being deleted (a pdf file), spawning the deletion of the indexed hocr text for each of its 1680 children (pages).
I tried editing `maxBooleanClauses` - setting it to a very big number (default is 1024) . Initially I edited and re-installed `solrconfig_query.xml` and restarted solr, which had no impact. Then I found search_api_solr's `search_api_solr.solr_cache.cache_queryresult_default_7_0_0` configuration and changed it there, which again had no impact.
It seems to me that there is one problem here with two possible solutions:
- Figure out how to make solr use and honor the `maxBooleanClauses` setting.
- Actually chunk the solr queries (notwithstanding the changes in 8e3cf13e, solr doesn't seem to actually be splitting the huge number of booleans into separate queries)