[ https://issues.apache.org/jira/browse/SOLR-877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12707667#action_12707667 ]
Yonik Seeley commented on SOLR-877: ----------------------------------- Hmmm, looking at the wiki examples, I think there are some more quick improvements we can do... >From the wiki: bq. To use in auto-suggest, add in a lower bound, an upper bound and make the lower bound exclusive of the input term, as in: http://localhost:8983/solr/terms?terms.fl=name&terms.lower=at&terms.prefix=at&terms.lower.incl=false&terms.upper=b&indent=true Unless I'm missing something, it doesn't make sense to exclude the lower bound... seems like it would often be useful to know if what the user typed in matched a term in the index.... excluding it would lead one to believe that it doesn't exist. But the improvement is that one should simply be able to specify a prefix: http://localhost:8983/solr/terms?terms.fl=name&terms.prefix=at The rest should be implementation details in Solr to make it efficient (i.e. Solr should know to start at "at" in the TermEnum if that's the prefix.) > Access to Lucene's TermEnum capabilities > ---------------------------------------- > > Key: SOLR-877 > URL: https://issues.apache.org/jira/browse/SOLR-877 > Project: Solr > Issue Type: New Feature > Reporter: Grant Ingersoll > Assignee: Grant Ingersoll > Priority: Minor > Fix For: 1.4 > > Attachments: SOLR-877.patch, SOLR-877.patch, SOLR-877.patch, > SOLR-877_2.patch > > > I wrote a simple SearchComponent on the plane the other day that gives access > to Lucene's TermEnum capabilities. I think this will be useful for doing > auto-suggest and other term based operations. My first draft is not > distributed, but it probably should be made to do so eventually. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.