Modifying field names in Lucene Query
I am looking for a way to modify the field names of a Lucene Query, using
a known mapping from field name to encoded field name.
For example, if I have a query title:System , I would need it transformed
into the query a200:System (I know the mapping from field encoding mapping
title->a200)
I could write a function to transform a query, but I'm wondering if there
is an easy way to do this. The function would be something like: public
Query rewriteWithEncodedFields(Query query, Map encodings) { ... }
If there is an option for this in one of the QueryParsers, that would be
great too, but I haven't found anything yet.
No comments:
Post a Comment