Created
January 27, 2015 18:27
-
-
Save jamilatta/c997b4864709a80a61f9 to your computer and use it in GitHub Desktop.
Mappnig of icatman index
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
DELETE /icatman | |
PUT /icatman | |
PUT /icatman/article/_mapping | |
{ | |
"article" : { | |
"_timestamp" : { | |
"enabled" : true, | |
"store" : true | |
}, | |
"properties" : { | |
"abbrev_journal_title": {"type": "string", "store": true}, | |
"epub": {"type": "string", "index": "analyzed"}, | |
"ppub": {"type": "string", "index": "analyzed"}, | |
"volume": {"type": "integer"}, | |
"issue": {"type": "integer"}, | |
"year": {"type": "string"}, | |
"doi": {"type": "string", "index": "analyzed"}, | |
"pid": {"type": "string", "index": "analyzed"}, | |
"is_aop": {"type": "boolean"}, | |
"article_type": {"type": "string"}, | |
"source": {"type": "string"}, | |
"b64_source" : {"type" : "attachment"} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -X PUT "http://192.168.169.134:9200/icatman"
curl -X PUT "http://192.168.169.134:9200/icatman/article/_mapping" -d '{"article" : {"dynamic": "strict", "_timestamp" : {"enabled" : true, "store" : true }, "properties" : {"abbrev_journal_title": {"type": "string", "store": true}, "epub": {"type": "string", "index": "analyzed"}, "ppub": {"type": "string", "index": "analyzed"}, "volume": {"type": "integer"}, "issue": {"type": "integer"}, "year": {"type": "string"}, "doi": {"type": "string", "index": "analyzed"}, "pid": {"type": "string", "index": "analyzed"}, "is_aop": {"type": "boolean"}, "article_type": {"type": "string"}, "source": {"type": "string"}, "b64_source" : {"type" : "attachment"}, "head_subject": {"type": "string"} } } }'