Add validation for reranker processor parameters #555
Labels
Enhancements
Increases software capabilities beyond original client specifications
v2.12.0
Issues targeting release v2.12.0
For the reranker processor, there are no checks of number of context fields user can define for the processor when:
query_text_path
as part of search requestThis brings risks of system instability in case very long string is passed in any of those two places.
I suggest we use some limit on number of fields for
document_fields
, let's start from 50 but that number is discussible. For thequery_text_path
we can limit the max level of nested field to not exceed one that set byindex.mapping.depth.limit
setting.The text was updated successfully, but these errors were encountered: