Re: Highlighting, return the matched terms only

2010-08-31 Thread Xavier Schepler

Chris Hostetter wrote:

: 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=solrhl.simple.pre=%20hl.simple.post=%20fl=idhl=truehl.snippets=1000hl.fragmenter=regexhl.regex.pattern=^\S%2B%24hl.fragsize=1hl.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!


  

Hi,

your solution is a little better than the one I'm using ATM.
Thanks.




Re: Highlighting, return the matched terms only

2010-08-30 Thread Chris Hostetter

: 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=solrhl.simple.pre=%20hl.simple.post=%20fl=idhl=truehl.snippets=1000hl.fragmenter=regexhl.regex.pattern=^\S%2B%24hl.fragsize=1hl.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!



Highlighting, return the matched terms only

2010-08-03 Thread Xavier Schepler

Hi,

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