was getting errors for previous mapping when trying to auto increment index with post requests, hopefully this fixes that.

This commit is contained in:
booboy 2019-02-02 00:37:05 -06:00
parent ee93b17576
commit 4a2f27d5f6

View file

@ -23,12 +23,19 @@ class ElasticSearchHelper
"mappings": { "mappings": {
"_doc": { "_doc": {
"properties": { "properties": {
"paste_metadata": { "paste_metadata": { "type": "nested" }
"type": "nested" "properties": {
"scrape_url": { "type": "string" },
"full_url": { "type": "string" },
"date": { "type": "string" },
"size": { "type": "string" },
"expire": { "type": "string" },
"title": { "type": "string" },
"syntax": { "type": "string" },
"user": { "type": "string" },
"hits": { "type": "string" }
}, },
"paste_text": { "paste_text": { "type": "text" }
"type": "text"
}
} }
} }
} }