I am working on a translator for Teiid (http://www.jboss.org/teiid/) to expose a c-l instance as a relational data source: each index is a table, fields are columns, SQL is translated to Lucene queries. I am pulling the fields from the index metadata as described in the docs:
I need to know the types of the fields (eg. string, date, long). Currently I am encoding it in the name:
It would be helpful if instead, the fields could be returned with more information like this:
The types are not known, sadly. Lucene (at least until version 4.0) deals only with strings. It's why the query-time sort parameter requires type hints.