: how could I have the highlighting component return only the terms that were
: matched, without any surrounding text ?

I'm not a Highlighter expert, but this is somethign that certainly 
*sounds* like it should be easy.

I took a shot at it and this is hte best i could come up with...

http://localhost:8983/solr/select/?q=solr&hl.simple.pre=%20&hl.simple.post=%20&fl=id&hl=true&hl.snippets=1000&hl.fragmenter=regex&hl.regex.pattern=^\S%2B%24&hl.fragsize=1&hl.regex.slop=1000.0

...however the fragments still wind up wider then it seems like they 
should based on the regex & slop.  I have no idea why.

I've seen enough people with this request htat it seems like there should 
be a built in fragmenter/formatter option for it in Solr, so i opened a 
feature request...

https://issues.apache.org/jira/browse/SOLR-2095

-Hoss

--
http://lucenerevolution.org/  ...  October 7-8, Boston
http://bit.ly/stump-hoss      ...  Stump The Chump!

Reply via email to