It's not hard to do in Lucene - assuming the limitations I mentioned in the description: it has to be a projection on the terms only, and even then on a single field. We can't possibly use this information as a filtering clause for other components, such as to select entities. I don't know about Elasticsearch though - happy to postpone this. |