lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vishal Swaroop <vishal....@gmail.com>
Subject Help to index nested document
Date Mon, 11 May 2015 18:52:54 GMT
Need your valuable inputs...

I am indexing data from database (one table) which is in this example
format :
id name value
1 Joe 102724904
2 Joe 100996643

- id is primary/ unique key
- there can be same "name" but different "value"
- If I try "name" as unique key then SOLR removes duplicate and indexes 1
document

- I am getting the result in this format... Is there as way I can index
data in a way so that I can "value" can be child for "name"...
"response": {
    "numFound": 2,
    "start": 0,
    "docs": [
      {
        "id": "1",
        "name": "Joe",
        "value": [
          "102724904"
        ]
      },
      {
        "id": "2",
        "name": "Joe",
        "value": [
          "100996643"
        ]
      }...

Expected format :
    "docs": [
      {
        "name": "Joe",
        "value": [
          "102724904",
  "100996643"
        ]
      }

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