I got this working the way you describe it (in the getHighlightQuery() method). The span queries were tripping it up, so I extracted the query terms and created a DisMax query from them. There'll be a loss of accuracy in the highlighting, but in my case that's better than no highlighting.
Should I just go ahead and submit a patch to SOLR-2703? On Tue, Jan 10, 2012 at 9:35 AM, Ahmet Arslan <iori...@yahoo.com> wrote: > > I am not able to do highlighting with surround query parser > > on the returned > > results. > > I have tried the highlighting component but it does not > > return highlighted > > results. > > Highlighter does not recognize Surround Query. It must be re-written to > enable highlighting in o.a.s.search.QParser#getHighlightQuery() method. > > Not sure this functionality should be added in SOLR-2703 or a separate > jira issue. > > -- Scott Stults | Founder & Solutions Architect | OpenSource Connections, LLC | 434.409.2780 http://www.opensourceconnections.com