LandRegistry/elastic-search-server

Name: elastic-search-server

Owner: HM Land Registry

Description: This repository contains the elasticsearch server and configuration files used for development

Created: 2014-07-14 10:11:58.0

Updated: 2015-11-27 10:07:48.0

Pushed: 2014-07-30 11:49:49.0

Homepage: null

Size: 19520

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

elastic-search-server

house_number value needs to be mapped as a string.  Otherwise it defaults to a number, causing public and private 
s of the property to fail for values like 1a (manifests as page not found when trying to view a property).

he moment house_number alone is mapped, so that it is still easy to chop and change fields without worrying about 
ging the mapping.

command to apply the mapping is:

 -XPUT 'https://aralia-9184790.eu-west-1.bonsai.io/public_titles/titles/_mapping' -d 
itles" : 
"properties": 
   {"property": {
       "type": "object", 
       "properties" : 
       {
           "address": 
           {
               "type": "object", 
               "properties": {
                       "house_number": {"type" : "string"} 
                   } 
               } 
           } 
       } 
   } 
 



This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.