lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Luker <lb...@reallywow.com>
Subject Re: Highlight snippets for a set of known documents
Date Fri, 01 Apr 2011 15:19:03 GMT
It turns out the answer is I'm a moron; I had an unnoticed "&rows=1"
nestled in the querystring I was testing with.

Anyway, thanks for replying!

--jay

On Fri, Apr 1, 2011 at 4:25 AM, Stefan Matheis
<matheis.stefan@googlemail.com> wrote:
> Jay,
>
> i'm not sure, but did you try it w/ brackets?
> q=foobar&fq={!q.op=OR}(id:1 id:5 id:11)
>
> Regards
> Stefan
>
> On Thu, Mar 31, 2011 at 6:40 PM, Jay Luker <lbjay@reallywow.com> wrote:
>> Hi all,
>>
>> I'm trying to get highlight snippets for a set of known documents and
>> I must being doing something wrong because it's only sort of working.
>>
>> Say my query is "foobar" and I already know that docs 1, 5 and 11 are
>> matches. Now I want to retrieve the highlight snippets for the term
>> "foobar" for docs 1, 5 and 11. What I assumed would work was something
>> like: "...&q=foobar&fq={!q.op=OR}id:1 id:5 id:11...". This returns
>> numfound=3 in the response, but I only get the highlight snippets for
>> document id:1. What am I doing wrong?
>>
>> Thanks,
>> --jay
>>
>

Mime
View raw message