I\'ve gone through the docs in github: http://github.com/outoftime/sunspot to 开发者_Go百科find solutions for highlighting, but it doesn\'t seem to work for me.
I\'m using dtSearch to highlight text search matches within a document. The code to do this, minus some details and cleanup, is roughly along these lines:
I have two questions regarding hit highlighter provided with apache lucene: see this function could you explain the use of token stream parameter.