lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar" <shalinman...@gmail.com>
Subject Re: Merging Highlight and result section
Date Mon, 29 Sep 2008 08:33:28 GMT
The results and highlighting section can be correlated using the unique key
value. Not sure what benefit you'll get by changing the response format.

On Mon, Sep 29, 2008 at 9:20 AM, Vaijanath N. Rao <vaiju1981@gmail.com>wrote:

> Hi Solr-Users,
>
> Is there any way of merging Result section with the snippet generated using
> the highlight option. So what I am essentially asking is the following.
>
> If I query Solr with highlight set to true it returns me back an result +
> highlight section. In the following manner,
> It will return an
> <response>
> +<lst name="responseHandler">
> <result    name="response" numfound="xx" start="yy">
> +<doc>
> .....
> </result>
> <lst name="highlighting">
>   <lst name="id_value">
>      <arr name="hl.flds" >
>         <str>Snippet Text</str>
>     </arr>
>   </lst>
>   ....
>  </lst>
> </response>
>
> Now my requirement is to get the snippet text and make it part of the
> result section. Can this be done, I am using DisMaxHandler while querying
> (if this needs to be taken into consideration).
>
> --Thanks and Regards
> Vaijanath
>
>


-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message