Skip to content

Instantly share code, notes, and snippets.

@roytmana
Created November 6, 2013 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roytmana/7330531 to your computer and use it in GitHub Desktop.
Save roytmana/7330531 to your computer and use it in GitHub Desktop.
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"analysis": {
"filter": {
"stem_possessive_english": {
"type": "stemmer",
"name": "possessive_english"
},
"stem_deduplicate": {
"type": "unique",
"only_on_same_position": true
},
"doc_key_edge_ngram_front": {
"type": "edge_ngram",
"min_gram": 4,
"max_gram": 40,
"side": "front"
},
"doc_key_edge_ngram_back": {
"type": "edge_ngram",
"min_gram": 4,
"max_gram": 40,
"side": "back"
},
"doc_key_ngram_short": {
"min_gram": 3,
"max_gram": 3,
"type": "ngram"
},
"provider_edge_ngram": {
"type": "edge_ngram",
"min_gram": 1,
"max_gram": 60,
"side": "front"
}
},
"analyzer": {
"stemmed": {
"tokenizer": "standard",
"filter": [
"standard",
"lowercase",
"stop",
"stem_possessive_english",
"keyword_repeat",
"kstem",
"stem_deduplicate"
]
},
"stemmed_no_original": {
"tokenizer": "standard",
"filter": [
"standard",
"lowercase",
"stop",
"stem_possessive_english",
"kstem"
]
},
"not_stemmed": {
"tokenizer": "standard",
"filter": [
"standard",
"lowercase",
"stop",
"stem_possessive_english"
]
},
"doc_key_partial": {
"tokenizer": "keyword",
"filter": [
"lowercase",
"doc_key_edge_ngram_back"
],
"type": "custom"
},
"doc_key_partial_short_ngram": {
"tokenizer": "keyword",
"filter": [
"lowercase",
"doc_key_ngram_short"
],
"type": "custom"
},
"doc_key": {
"tokenizer": "keyword",
"filter": [
"lowercase"
],
"type": "custom"
},
"provider": {
"tokenizer": "whitespace",
"filter": [
"lowercase",
"word_delimiter"
],
"type": "custom"
},
"provider_partial": {
"tokenizer": "whitespace",
"filter": [
"lowercase",
"word_delimiter",
"provider_edge_ngram"
],
"type": "custom"
}
}
}
},
"mappings": {
"mod": {
"_all": {
"index_analyzer": "stemmed",
"search_analyzer": "stemmed"
},
"properties": {
"acquisition": {
"dynamic": "true",
"properties": {
"officer": {
"dynamic": "true",
"properties": {
"staff": {
"dynamic": "true",
"properties": {
"id": {
"type": "long",
"include_in_all": false
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_options": "offsets",
"boost": 0.5
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.5
},
"all_stem": {
"type": "string",
"index_options": "offsets",
"boost": 0.5
}
}
}
}
},
"team": {
"dynamic": "true",
"properties": {
"acronym": {
"type": "multi_field",
"path": "just_name",
"fields": {
"acronym": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"id": {
"type": "long",
"include_in_all": false
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.3
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.3
}
}
}
}
}
}
},
"specialist": {
"dynamic": "true",
"properties": {
"staff": {
"dynamic": "true",
"properties": {
"id": {
"type": "long",
"include_in_all": false
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_options": "offsets",
"boost": 0.5
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.5
},
"all_stem": {
"type": "string",
"index_options": "offsets",
"boost": 0.5
}
}
}
}
},
"team": {
"dynamic": "true",
"properties": {
"acronym": {
"type": "multi_field",
"path": "just_name",
"fields": {
"acronym": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"id": {
"type": "long",
"include_in_all": false
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.3
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.3
}
}
}
}
}
}
}
}
},
"approved": {
"type": "boolean"
},
"attr": {
"dynamic": "true",
"properties": {
"arra": {
"type": "boolean"
},
"fpds13n": {
"type": "boolean"
},
"fpds13o": {
"type": "boolean"
},
"fpds13u": {
"type": "boolean"
},
"fpds13w": {
"type": "boolean"
},
"fpds6m": {
"type": "multi_field",
"path": "just_name",
"fields": {
"fpds6m": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 30
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 30
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 30
}
}
},
"fpds8a": {
"dynamic": "true",
"properties": {
"id": {
"type": "multi_field",
"path": "just_name",
"fields": {
"id": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"attr.fpds8a.id.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets"
}
}
}
}
},
"fpds8g": {
"dynamic": "true",
"properties": {
"id": {
"type": "multi_field",
"path": "just_name",
"fields": {
"id": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"attr.fpds8g.id.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets"
}
}
}
}
},
"fpds9cc": {
"dynamic": "true",
"properties": {
"code": {
"type": "multi_field",
"path": "just_name",
"fields": {
"code": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"attr.fpds9cc.code.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
},
"id": {
"type": "multi_field",
"path": "just_name",
"fields": {
"id": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"attr.fpds9cc.name.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
}
}
}
}
},
"award": {
"dynamic": "true",
"properties": {
"acquisition": {
"dynamic": "true",
"properties": {
"branch": {
"dynamic": "true",
"properties": {
"acronym": {
"type": "multi_field",
"path": "just_name",
"fields": {
"acronym": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"id": {
"type": "long",
"include_in_all": false
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.2
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.2
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.2
}
}
}
}
},
"institute": {
"dynamic": "true",
"properties": {
"acronym": {
"type": "multi_field",
"path": "just_name",
"fields": {
"acronym": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"id": {
"type": "long",
"include_in_all": false
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.1
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.1
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.1
}
}
}
}
},
"team": {
"dynamic": "true",
"properties": {
"acronym": {
"type": "multi_field",
"path": "just_name",
"fields": {
"acronym": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"id": {
"type": "long",
"include_in_all": false
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.3
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.3
}
}
}
}
}
}
},
"activity": {
"dynamic": "true",
"properties": {
"code": {
"type": "multi_field",
"path": "just_name",
"fields": {
"code": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all_stem": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"award.activity.code.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all_stem": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
}
}
}
}
},
"adbNumber": {
"type": "multi_field",
"path": "just_name",
"fields": {
"adbNumber": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"award.adbNumber.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
},
"contractingOffice": {
"dynamic": "true",
"properties": {
"code": {
"type": "multi_field",
"path": "just_name",
"fields": {
"code": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"award.contractingOffice.code.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
}
}
},
"expiration": {
"dynamic": "true",
"properties": {
"date": {
"type": "date",
"format": "date"
},
"fy": {
"type": "integer"
}
}
},
"id": {
"type": "long",
"include_in_all": false
},
"nonSeverable": {
"type": "boolean"
},
"obligationTotal": {
"type": "long"
},
"piid": {
"type": "multi_field",
"path": "just_name",
"fields": {
"piid": {
"type": "string",
"index_options": "offsets",
"analyzer": "doc_key"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"award.piid.partial": {
"type": "string",
"index_analyzer": "doc_key_partial",
"search_analyzer": "doc_key",
"index_options": "offsets",
"include_in_all": false
}
}
},
"rpiid": {
"type": "multi_field",
"path": "just_name",
"fields": {
"rpiid": {
"type": "string",
"index_options": "offsets",
"analyzer": "doc_key"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"award.rpiid.partial": {
"type": "string",
"index_analyzer": "doc_key_partial",
"search_analyzer": "doc_key",
"index_options": "offsets",
"include_in_all": false
}
}
},
"severable": {
"type": "boolean"
},
"title": {
"type": "multi_field",
"path": "just_name",
"fields": {
"title": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 3
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 3
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 3
}
}
},
"type": {
"dynamic": "true",
"properties": {
"id": {
"type": "integer",
"include_in_all": false
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.01
},
"all_stem": {
"type": "string",
"index_options": "offsets",
"boost": 0.01
}
}
}
}
}
}
},
"businessRepresentative": {
"type": "multi_field",
"path": "just_name",
"fields": {
"businessRepresentative": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"dates": {
"dynamic": "true",
"properties": {
"lastOrderDate": {
"type": "date",
"format": "date"
},
"signatureDate": {
"type": "date",
"format": "date"
},
"ultimateCompletionDate": {
"type": "date",
"format": "date"
}
}
},
"division": {
"type": "multi_field",
"path": "just_name",
"fields": {
"division": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"division.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
},
"excepted": {
"dynamic": "true",
"properties": {
"code": {
"type": "multi_field",
"path": "just_name",
"fields": {
"code": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"excepted.code.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
},
"all_stem": {
"type": "string",
"index_options": "offsets",
"boost": 0.3
}
}
}
}
},
"executed": {
"type": "boolean"
},
"fundingOffice": {
"dynamic": "true",
"properties": {
"code": {
"type": "multi_field",
"path": "just_name",
"fields": {
"code": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"fundingOffice.code.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
}
}
},
"fy": {
"type": "integer"
},
"lastExecuted": {
"type": "boolean"
},
"lastMod": {
"type": "boolean"
},
"modificationNumber": {
"type": "integer"
},
"money": {
"dynamic": "true",
"properties": {
"amounts": {
"dynamic": "true",
"properties": {
"ultimateValue": {
"type": "long"
}
}
},
"totals": {
"dynamic": "true",
"properties": {
"obligationRunningTotal": {
"type": "long"
},
"obligationTotal": {
"type": "long"
},
"ultimateValue": {
"type": "long"
}
}
}
}
},
"optionsAward": {
"type": "boolean"
},
"pi": {
"dynamic": "true",
"properties": {
"primary": {
"type": "multi_field",
"path": "just_name",
"fields": {
"primary": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"secondary": {
"type": "multi_field",
"path": "just_name",
"fields": {
"secondary": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
}
}
},
"programOffice": {
"dynamic": "true",
"properties": {
"code": {
"type": "multi_field",
"path": "just_name",
"fields": {
"code": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"programOffice.code.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.5
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 0.5
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 0.5
}
}
}
}
},
"projectOfficer": {
"type": "multi_field",
"path": "just_name",
"fields": {
"projectOfficer": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"programManager": {
"type": "multi_field",
"path": "just_name",
"fields": {
"programManager": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"provider": {
"dynamic": "true",
"properties": {
"country": {
"dynamic": "true",
"properties": {
"code": {
"type": "multi_field",
"path": "just_name",
"fields": {
"code": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"provider.country.code.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
},
"id": {
"type": "multi_field",
"path": "just_name",
"fields": {
"id": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
},
"provider.country.name.na": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs",
"include_in_all": false
}
}
}
}
},
"duns": {
"type": "multi_field",
"path": "just_name",
"fields": {
"duns": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 3
},
"all": {
"type": "string",
"index_options": "offsets",
"boost": 3
},
"all_stem": {
"type": "string",
"index_analyzer": "stemmed",
"search_analyzer": "stemmed",
"index_options": "offsets",
"boost": 3
},
"provider.name.partial": {
"type": "string",
"index_analyzer": "provider_partial",
"search_analyzer": "provider",
"index_options": "offsets",
"include_in_all": false
}
}
},
"smallBusiness": {
"type": "boolean"
},
"tin": {
"type": "multi_field",
"path": "just_name",
"fields": {
"tin": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
},
"vin": {
"type": "multi_field",
"path": "just_name",
"fields": {
"vin": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
}
}
},
"status": {
"dynamic": "true",
"properties": {
"id": {
"type": "integer",
"include_in_all": false
},
"name": {
"type": "multi_field",
"path": "just_name",
"fields": {
"name": {
"type": "string",
"index_options": "offsets"
},
"all": {
"type": "string",
"index_options": "offsets"
},
"all_stem": {
"type": "string",
"index_options": "offsets"
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment