On 5/2/07, Brian Whitman <[EMAIL PROTECTED]> wrote:
Would love to set a custom fragmenter in Solr for highlighting. But I don't see a way to change the fragmenter "on the fly." Should this be a solrconfig/schema setting?
It would be nice to able to register custom formatters and subsequently use them in queries: <highlighting> <formatter name="mycustom">com.business.MyFormatter</formatter> </highlighting> ...&hl.formatter=mycustom The main reason I've hesitated in adding this kind of configuration is that it exposes Solr's implementation details (in particular, the use of lucene's contrib Highlighter package). There are other options floating out there (including a span-based one which would correctly highlight phrase matches). Then again, chances are that any new highlighting package would endeavour to support old-style formatters and scorers anyway... -Mike