[ https://issues.apache.org/jira/browse/SOLR-940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676721#action_12676721 ]
Uwe Schindler commented on SOLR-940: ------------------------------------ I would program this tokenizer in this way (using the old Lucene Token API): {code} public class TrieTokenStream extends TokenStream/Tokenizer { public TrieTokenStream(long value,...) { this.trieVals=Arrays.asList(TrieUtils.trieCodeLong(value,...)).iterator(); } public Token next(Token token) { if (!s.hasNext()) return null; token.reinit(trieVals.next(),0,0); token.setPositionIncrement(0); return token; } private final Iterator<String> trieVals; } {code} Using this, you could index the field (without an additional helper field and so not sortable) using the standard Lucene Fieldable mechanism. No further changes to solar on the indexing side might be needed. > TrieRange support > ----------------- > > Key: SOLR-940 > URL: https://issues.apache.org/jira/browse/SOLR-940 > Project: Solr > Issue Type: New Feature > Reporter: Yonik Seeley > Fix For: 1.4 > > > We need support in Solr for the new TrieRange Lucene functionality. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.