jurismarches / luqum

A lucene query parser generating ElasticSearch queries and more !
Other
188 stars 40 forks source link

_get_operator_extract in ElasticsearchQueryBuilder should not raise if there is only one children in binary operation #106

Open alexgarel opened 3 weeks ago

alexgarel commented 3 weeks ago

While raising OrAndAndOnSameLevel in _yield_nested_children, we call _get_operator_extract which fails if we have a AndOperation or OrOperation with only one children.

It should not.