Elastic Search has very interesting idea percolate queries: create some queries, and you can easily ask elastic to match a document to all queries and get the result only of matched queries.
If you work with elasticsearch, I expect that you read official suggesting about heap size. If haven’t let me summarise it:
Part two where you realise that everything much worse
Short version: JVM can’t guaranty very small pause at multi-thread environment. The pause depends on number of active…