term offsets not returned with tv=true

2009-02-11 Thread Jeffrey Baker
I'm trying to exercise the termOffset functions in the nightly build (2009-02-11) but it doesn't seem to do anything. I have an item in my schema like so: And I attempt this query: qt=tvrh& tv=true& tv.offsets=true& indent=true& wt=json& facet.mincount=1& facet=true& hl=on& hl.fl=document& hl.

Re: Improving the highlighter output for use in html

2009-02-09 Thread Jeffrey Baker
On Mon, Feb 9, 2009 at 2:59 PM, Jeffrey Baker wrote: > The default highlighter output is bogus if you're trying to use the > snippets in a web browser. With the default delimiters, the > temptation is to just stick the snippets in an innerHTML property, but > the problem i

Improving the highlighter output for use in html

2009-02-09 Thread Jeffrey Baker
The default highlighter output is bogus if you're trying to use the snippets in a web browser. With the default delimiters, the temptation is to just stick the snippets in an innerHTML property, but the problem is that other HTML special characters (< > and &) are not escaped. For example, a hig

Re: Searching on field A gives spurious highlights in field B

2009-02-06 Thread Jeffrey Baker
On Fri, Feb 6, 2009 at 3:36 PM, Mike Klaas wrote: > > On 6-Feb-09, at 12:34 PM, Jeffrey Baker wrote: > >> Hello all. First post to the list. > > Welcome aboard. > >> I noticed that if I search for foo:blah&hl.fl=bar, I get highlight >> output for instances

Searching on field A gives spurious highlights in field B

2009-02-06 Thread Jeffrey Baker
Hello all. First post to the list. I noticed that if I search for foo:blah&hl.fl=bar, I get highlight output for instances of "blah" in field "bar". Is there any way to avoid that? I'm using solr 1.3. -jwb