Workaround XF2.2.13 does the search beforechecking it it can save it as a cached value, which can result in a query that is massively more complex than expected being sent to elasticsearch
This issue practically doesn't occur with stock XFES, but with additional search addons such as ElasticSearch Essentials this can generate unexpected errors
Improve how thread/tickets by others in a category without view-other permission are filtered out of search results when using XFES without ElasticSearch Essentials
Add PermissionConstraint helper class, designed to simplify implementing XF Search handler's getTypePermissionConstraints function
Add "Collect search DSL & debug statistics" option (Default off), designed as a developer tool and strongly not recommended for production usage.