Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (40 sloc) 1.16 KB
## Elasticsearch Mapping
(baseado em http://schema.org/docs/full.html)
PUT recursos
{
"settings": {
"analysis": {
"analyzer": {
"br_std": {
"type": "standard",
"stopwords": "brazilian"
}
}
}
},
"mappings": {
"recurso": {
"properties": {
"type": {"type": "string", "index": "no" },
"name": {"type": "string"},
"author": {"type": "string"},
"description": {"type": "string"},
"taxonCoverage":{"type": "string", "index": "not_analyzed"},
"spatialCoverage": {
"properties": {
"name" : {"type": "string", "index": "not_analyzed", "analyzer": "brazilian"},
"shape": {"type": "geo_shape" }
}
},
"keywords": {"type": "string", "index": "not_analyzed", "analyzer": "brazilian"},
"temporalCoverage": {
"properties": {
"date": {"type": "date" },
"year": {"type": "integer" }
}
},
"url": {"type": "string", "index": "no" }
}
}
}
}