I supposed currently the only way to show the highlighting snippets in xml
and json output is via a separate section at the bottom, and it is
currently not possible to show the highlighted snippets together with the
rest of the response?

Regards,
Edwin


On 22 April 2015 at 21:57, Zheng Lin Edwin Yeo <edwinye...@gmail.com> wrote:

> Hi,
>
> I'm currently implementing highlighting on my Solr-5.0.0. When I issue the
> following command:
> http://localhost:8983/solr/collection1/select?q=conducted
> <http://localhost:8983/solr/edmtechnical/select?q=conducted>
> &hl=true&hl.fl=Content,Summary&wt=json&indent=true&rows=10,
> the highlighting result is listed at the bottom of the output, instead of
> together with the rest of the response above. The result is shown below:
>
>   "response":{"numFound":10,"start":0,"docs":[
>       {
>         "id":"1-1",
>         "Summary":"i} Trial conducted",
>         "Content":"Completed",
>         "_version_":1498407036159787020},
>
>
>   "highlighting":{
>     "1-1":{
>       "Summary":["i) Trial <em>conducted</em>"]}
>
>
> Is there any way to get the highlighted output to be displayed together with 
> the rest of the response, instead of having it display separately at the 
> bottom? Which is something like this
>
>
>   "response":{"numFound":10,"start":0,"docs":[
>       {
>         "id":"1-1",
>         "Summary":"i} Trial <em>conducted</em>",
>         "Content":"Completed",
>         "_version_":1498407036159787020},
>
>
> Regards,
> Edwin
>
>

Reply via email to