I know this sounds like a strange question but I am looking for the sanest way to achieve this:
I have a list of ~10K ProductIds coming from a ML engine and I need to create filters and facets on the top of this list, where the product metadata is stored in ES. I am trying to find the best way to pass this list as a parameter which is 1) not too verbose 2) performant.
I can create a filter and pass 10K OR terms statements but that sounds like really freaky.
Is there a better way to do this? Also can consider change in data modelling.