Note that there are some explanatory texts on larger screens.

plurals
  1. POSolr Mulivalued Problem
    primarykey
    data
    text
    <p>Consider The following is the json response i'm getting from the <strong><em>solr</em></strong> if i use <strong><em>multivalued = true</em></strong> for the fields.</p> <pre><code> { "id":["1","2","3"], "TS":["2010-06-28 00:00:00.0","2010-06-28 00:00:00.0","2010-06-28 00:00:00.0"], "Type":["VIDEO","IMAGE","VIDEO"] } but i need the response like this { "0":["1","2010-06-28 00:00:00.0","VIDEO"], "1":["2","2010-06-28 00:00:00.0","IMAGE"], "2":["3","2010-06-28 00:00:00.0","VIDEO"] } How can i get this.Any help would be appreciated. Thanks in advance. </code></pre> <blockquote> <pre><code> **Update :** Actually at the first level its not a problem. When we are going </code></pre> <p>more than one level then only the problem arises. right now i'm putting the entire response here to make it clear.</p> </blockquote> <pre><code>{ "responseHeader":{ "status":0, "QTime":0, "params":{ "facet":"true", "indent":"on", "start":"0", "q":"laptop", "wt":["json", "json"], "rows":"200"}}, "response":{"numFound":1,"start":0,"docs":[ { "createdBy":"0", "id":194, "status":"ACTIVE", "text":"Can i buy Sony laptop?", "ansTS":["2010-07-01 00:00:00.0","2010-08-06 15:11:55.0","2010-08-11 15:28:13.0","2010-08-11 15:30:49.0","2010-08-12 01:45:48.0","2010-08-12 01:46:18.0"], "mediaType":["VIDEO","VIDEO","VIDEO"], "ansId":["59","76","77","78","80","81"], "mediaId":[24,25,26], ]}, ] }, "facet_counts":{ "facet_queries":{}, "facet_fields":{ "catName":[]}, "facet_dates":{}}} </code></pre> <p>look at the mediaId , mediatype ,ansTS arrays. Its one to many relationship.But they are grouped by column names.Thanks in advance. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload