HI All, I was wondering if someone could point to a direction on how to implement a "rewrite" for the value on trie field (long) on query time.
Example, considering the query: q=reference:"4-1.2" the value is a text, but the following is indexed as a number (e.g.: 004001002, where "4" becomes "004", and 1 becomes "001", and 2 "002"), with this transformation I have a reference (article, section, subsection) as a number, that can be properly sorted, and query ranges can used. I tried to implement an Analyzer, but Trie Fields do not support custom analyzer. Maybe something on the edismax realm? I am just not sure where solr to add this transformation function. Btw, I am using edismax query parser on solr 4.0 branch. (but could very well switch to trunk) I understand I could very well do the transformation on the application side (which I am doing now), but I would like something more intuitive for the user. All suggestions are welcome though. Thanks, Clécio