I am having a problem with ElasticSearch 7.9.1 which seems to be caused by Lucene 8.6.2. If I perform a search with >288 filter terms using the unified highlighter I get a too_complex_to_determinize_exception error but if I switch to the plain highlighter it works fine. Is this a bug or am I doing something wrong?
This throws the error ``` { "highlight": { "type": "unified", "fields": { "title": { "require_field_match": false } } }, "query": { "bool": { "must": [{ "query_string": { "query": "*" } }], "filter": [{ "bool": { "must": [{ "terms": { "id": [ ">288 terms here" ] } }] } }] } } } ``` But this works fine ``` { "highlight": { "type": "plain", "fields": { "title": { "require_field_match": false } } }, "query": { "bool": { "must": [{ "query_string": { "query": "*" } }], "filter": [{ "bool": { "must": [{ "terms": { "id": [ ">288 terms here" ] } }] } }] } } } ``` Or if I adjust the search to use the copy_to field it works as well (note "id" is now "_id") ``` { "highlight": { "type": "unified", "fields": { "title": { "require_field_match": false } } }, "query": { "bool": { "must": [{ "query_string": { "query": "*" } }], "filter": [{ "bool": { "must": [{ "terms": { "_id": [ ">288 terms here" ] } }] } }] } } } ``` -- [image: photo] <https://www.kaseware.com/> *Isaac Doub* Director of Software Development, Kaseware <https://www.kaseware.com/> (720) 675-7567 <7206757567> | isaac.d...@kaseware.com 191 University Blvd Suite 170, Denver, CO 80206 <https://www.linkedin.com/in/isaacdoub/> <http://twitter.com/kaseware> <http://www.facebook.com/kaseware>