The regular expression fragmenter might help you here. http://wiki.apache.org/solr/HighlightingParameters#hl.fragmenter
On Mon, Mar 29, 2010 at 4:38 PM, Joe Calderon <calderon....@gmail.com> wrote: > hello *, ive been using the highlighter and been pretty happy with > its results, however theres an edge case im not sure how to fix > > for query: amazing grace > > the record matched and highlighted is > <em>amazing</em> rendition of <em>amazing grace</em> > > is there any way to only highlight amazing grace without using phrase > queries, can i modify the highlighter components to only use terms > once and to favor contiguous sections? > > i dont want to enforce phrase queries as sometimes i do want terms out > of order highlighter but i only want each term matched highlighted > once > > > does this make sense? > -- Lance Norskog goks...@gmail.com