lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Matheis <matheis.ste...@googlemail.com>
Subject Re: Highlight snippets for a set of known documents
Date Fri, 01 Apr 2011 08:25:29 GMT
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