Re: Using hl.regex.pattern to print complete lines

2010-07-21 Thread Lance Norskog
Java regex might be different from all other regex, so writing a test program and experimenting is the only way. Once you decide that this expression really is what you want, and that it does not achieve what you expect, you might have found a bug in highlighting. Lucene/Solr highlighting has alwa

Re: Using hl.regex.pattern to print complete lines

2010-07-21 Thread Peter Spam
Still not working ... any ideas? -Pete On Jul 14, 2010, at 11:56 AM, Peter Spam wrote: > Any other thoughts, Chris? I've been messing with this a bit, and can't seem > to get (?m)^.*$ to do what I want. > > 1) I don't care how many characters it returns, I'd like entire lines all the > time

Re: Using hl.regex.pattern to print complete lines

2010-07-14 Thread Peter Spam
Any other thoughts, Chris? I've been messing with this a bit, and can't seem to get (?m)^.*$ to do what I want. 1) I don't care how many characters it returns, I'd like entire lines all the time 2) I just want it to always return 3 lines: the line before, the actual line, and the line after. 3

Re: Using hl.regex.pattern to print complete lines

2010-07-09 Thread Peter Spam
Ah, this makes sense. I've changed my regex to "(?m)^.*$", and it works better, but I still get fragments before and after some returns. Thanks for the hint! -Pete On Jul 8, 2010, at 6:27 PM, Chris Hostetter wrote: > > : If you can use the latest branch_3x or trunk, hl.fragListBuilder=single

Re: Using hl.regex.pattern to print complete lines

2010-07-08 Thread Chris Hostetter
: If you can use the latest branch_3x or trunk, hl.fragListBuilder=single : is available that is for getting entire field contents with search terms : highlighted. To use it, set hl.useFastVectorHighlighter to true. He doesn't want the entire field -- his stored field values contain multi-line s

Re: Using hl.regex.pattern to print complete lines

2010-07-08 Thread Koji Sekiguchi
(10/07/09 9:30), Peter Spam wrote: Thanks for the note, Koji. However, hl.fragsize=0 seems to return the entire document, rather than just one single line. Here's what I tried (what I previously had was commented out): regexv = "^.*$" thequery = '/solr/select?facet=true&facet.limit=10&fl=id,s

Re: Using hl.regex.pattern to print complete lines

2010-07-08 Thread Peter Spam
Thanks for the note, Koji. However, hl.fragsize=0 seems to return the entire document, rather than just one single line. Here's what I tried (what I previously had was commented out): regexv = "^.*$" thequery = '/solr/select?facet=true&facet.limit=10&fl=id,score,filename&tv=true&timeAllowed=30

Re: Using hl.regex.pattern to print complete lines

2010-07-08 Thread Koji Sekiguchi
(10/07/09 2:44), Peter Spam wrote: To clarify, I never want a snippet, I always want a whole line returned. Is this possible? Thanks! -Pete Hello Pete, Use NullFragmenter. It can be used via GapFragmenter with hl.fragsize=0. Koji -- http://www.rondhuit.com/en/

Re: Using hl.regex.pattern to print complete lines

2010-07-08 Thread Peter Spam
To clarify, I never want a snippet, I always want a whole line returned. Is this possible? Thanks! -Pete On Jul 7, 2010, at 5:33 PM, Peter Spam wrote: > Hi, > > I have a text file broken apart by carriage returns, and I'd like to only > return entire lines. So, I'm trying to use this: >

Using hl.regex.pattern to print complete lines

2010-07-07 Thread Peter Spam
Hi, I have a text file broken apart by carriage returns, and I'd like to only return entire lines. So, I'm trying to use this: &hl.fragmenter=regex &hl.regex.pattern=^.*$ ... but I still get fragments, even if I crank up the hl.regex.slop to 3 or so. I also tried a pattern of