I'm using a local index on Lucene, but I would love to have something similar to named queries of ElasticSearch (https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html#named-queries)
Looking to the Lucene Java API, I don't see how to do it directly on Lucene.
Can you give me a hand?