Created
December 13, 2011 10:18
-
-
Save BowlingX/1471538 to your computer and use it in GitHub Desktop.
Mapping and Settings Geonames
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
state: open | |
settings: { | |
index.analysis.filter.name_ngrams.side: front | |
index.analysis.filter.name_ngrams.type: edgeNGram | |
index.analysis.analyzer.partial.tokenizer: standard | |
index.store: memory | |
index.number_of_replicas: 1 | |
index.analysis.analyzer.partial.filter.3: name_ngrams | |
index.analysis.analyzer.partial_non_ascii.filter.2: name_ngrams | |
index.analysis.analyzer.partial_non_ascii.filter.1: lowercase | |
index.analysis.filter.name_ngrams.max_gram: 40 | |
index.analysis.analyzer.full.filter.2: asciifolding | |
index.analysis.analyzer.partial_non_ascii.filter.0: standard | |
index.analysis.analyzer.full.filter.1: lowercase | |
index.analysis.analyzer.full.filter.0: standard | |
index.analysis.analyzer.full.type: custom | |
index.analysis.analyzer.partial_non_ascii.tokenizer: standard | |
index.analysis.analyzer.partial.filter.2: asciifolding | |
index.analysis.analyzer.partial.filter.1: lowercase | |
index.analysis.analyzer.partial.filter.0: standard | |
index.analysis.analyzer.full.tokenizer: standard | |
index.analysis.filter.name_ngrams.min_gram: 2 | |
index.analysis.analyzer.partial.type: custom | |
index.analysis.analyzer.partial_non_ascii.type: custom | |
index.number_of_shards: 1 | |
} | |
mappings: { | |
location: { | |
properties: { | |
alternateNames: { | |
properties: { | |
isShortName: { | |
type: boolean | |
} | |
name: { | |
type: multi_field | |
fields: { | |
partial_non_ascii: { | |
include_in_all: false | |
index_analyzer: partial_non_ascii | |
search_analyzer: full | |
term_vector: with_positions_offsets | |
type: string | |
} | |
name: { | |
analyzer: full | |
type: string | |
} | |
partial: { | |
include_in_all: false | |
index_analyzer: partial | |
search_analyzer: full | |
type: string | |
} | |
} | |
} | |
isPreferredName: { | |
type: boolean | |
} | |
lang: { | |
type: string | |
} | |
} | |
} | |
admin4: { | |
type: string | |
} | |
admin3: { | |
type: string | |
} | |
lonlat: { | |
type: geo_point | |
} | |
admin2: { | |
type: string | |
} | |
locid: { | |
type: long | |
} | |
admin1: { | |
type: string | |
} | |
asciiname: { | |
type: string | |
} | |
name: { | |
type: multi_field | |
fields: { | |
partial_non_ascii: { | |
include_in_all: false | |
index_analyzer: partial_non_ascii | |
search_analyzer: full | |
term_vector: with_positions_offsets | |
type: string | |
} | |
name: { | |
analyzer: full | |
term_vector: with_positions_offsets | |
type: string | |
} | |
partial: { | |
include_in_all: false | |
index_analyzer: partial | |
search_analyzer: full | |
term_vector: with_positions_offsets | |
type: string | |
} | |
} | |
} | |
featureCode: { | |
type: string | |
} | |
countryCode: { | |
type: string | |
} | |
population: { | |
type: long | |
} | |
} | |
} | |
locationAlternateNames: { | |
properties: { } | |
} | |
} | |
aliases: [ ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Query:
Brings first everything with "Dus..", but should bring first "Düs.."