restato / small-business

0 stars 0 forks source link

Design Indexing Fields #4

Open restato opened 5 years ago

restato commented 5 years ago
curl -X PUT "localhost:9200/small-business" -H 'Content-Type: application/json' -d'
{
    "settings" : {
        "number_of_shards" : 1
    },
    "mappings" : {
        "_doc" : {
            "properties": {
                "location": {
                    "type": "geo_point"
                }
            }
        }
    }
}
restato commented 5 years ago
{
  "_index": "small-business",
  "_type": "_doc",
  "_id": "DS3_RWgBTEtRjDLVCmEj",
  "_version": 1,
  "_score": 1.5824835,
  "_source": {
    "adongCd": "4128555200",
    "adongNm": "백석2동",
    "bizesId": "12545723",
    "bizesNm": "카페제이슨",
    "bldMngNo": "4128510600114460003004554",
    "bldMnno": "16",
    "bldNm": "",
    "bldSlno": "",
    "brchNm": "",
    "ctprvnCd": "41",
    "ctprvnNm": "경기도",
    "dongNo": "",
    "flrNo": "1",
    "hoNo": "",
    "indsLclsCd": "Q",
    "indsLclsNm": "음식",
    "indsMclsCd": "Q12",
    "indsMclsNm": "커피점/카페",
    "indsSclsCd": "Q12A01",
    "indsSclsNm": "커피전문점/카페/다방",
    "ksicCd": "I56220",
    "ksicNm": "비알콜 음료점업",
    "lat": "37.6445879505493",
    "ldongCd": "4128510600",
    "ldongNm": "백석동",
    "lnoAdr": "경기도 고양시 일산동구 백석동 1446-3",
    "lnoCd": "4128510600214460003",
    "lnoMnno": "1446",
    "lnoSlno": "3",
    "lon": "126.778760755928",
    "newZipcd": "10424",
    "oldZipcd": "410817",
    "plotSctCd": "1",
    "plotSctNm": "대지",
    "rdnm": "경기도 고양시 일산동구 호수로446번길",
    "rdnmAdr": "경기도 고양시 일산동구 호수로446번길 16",
    "rdnmCd": "412854379215",
    "signguCd": "41285",
    "signguNm": "고양시 일산동구",
    "location": {
      "lat": "37.6445879505493",
      "lon": "126.778760755928"
    }
  },
  "highlight": {
    "ctprvnNm": [
      "@kibana-highlighted-field@경기도@/kibana-highlighted-field@"
    ]
  }
}