Sounds like close to what I would do but I'm not sure, so to double-check let me rephrase to see if we're on the same page: we would still validate that such a query is using exclusively a Numeric type, but also accept the Term which would match with the marker token.
We are partly on the same page I was suggesting something rather simpler. If a field is numeric, but also allows null tokens, we allow string based queries. This of course could lead to "wrong" queries, for example term queries which try to match something else than the null token. You are proposing to go a step further. Probably possible, but so far I only extract field names from the queries (which is in itself only an approximation, since I can only target the query types available in Lucene query), term values are ignored.
|