lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bastjan <bastian.ent...@germanistik.uni-giessen.de>
Subject Re: Get Data under Highlight Json value pair
Date Thu, 16 Oct 2014 10:39:01 GMT

> How can I get the value , is there any option at query syntax, current I
> used &h1.on and &h1.fl=
> <List of Fields>
> "highlighting":{
>     "":{
>       "CatalogSearch_en-US":["
> <em>
> VCM
> </em>
> "],
>       "Name_en-US":["
> <em>
> VCM
> </em>
>  
> <em>
> TO
> </em>
>  
> <em>
> LAPTOP
> </em>
>  CABLE"],
>       "Description_en-US":[".\n
> <em>
> VCM
> </em>
>  (
> <em>
> Vehicle Communication Module
> </em>
> ) / VMM (
> <em>
> Vehicle
> </em>
>  Measurement 
> <em>
> Module
> </em>
> ) to Laptop Cable.\n\nPrevious part"]},
>     "":{
>       "CatalogSearch_en-US":["
> <em>
> VCM
> </em>
>  
> <em>
> II
> </em>
> "],
>       "Name_en-US":["
> <em>
> VCM
> </em>
>  
> <em>
> II
> </em>
>  
> <em>
> DLC
> </em>
>  CABLE"],
>       "Description_en-US":[".\n
> <em>
> VCM
> </em>
>  
> <em>
> II
> </em>
>  
> <em>
> DLC
> </em>
>  cable"]},
>     "":{
>       "CatalogSearch_en-US":["
> <em>
> VCM
> </em>
> "],
>       "Name_en-US":["8' DLC TO 
> <em>
> VCM
> </em>
>  
> <em>
> I
> </em>
>  
> <em>
> CABLE
> </em>
> "],
>       "Description_en-US":["8' DLC to 
> <em>
> VCM
> </em>
>  
> <em>
> I
> </em>
>  
> <em>
> cable
> </em>
> ."]},
> 
> Thanks
> 
> Ravi

I know I'm a little late now ;-) Anyway, I ran into the same problem and
figured out the cause and solution: You do not set the field "uniqueField"
in your index, hence the key in the JSON is empty which will result in
problems when parsing the JSON string in JS, leaving only one key-value
pair. 



--
View this message in context: http://lucene.472066.n3.nabble.com/Get-Data-under-Highlight-Json-value-pair-tp4149041p4164494.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message