was getting errors for previous mapping when trying to auto increment index with post requests, hopefully this fixes that.
This commit is contained in:
parent
ee93b17576
commit
4a2f27d5f6
1 changed files with 12 additions and 5 deletions
|
@ -23,12 +23,19 @@ class ElasticSearchHelper
|
|||
"mappings": {
|
||||
"_doc": {
|
||||
"properties": {
|
||||
"paste_metadata": {
|
||||
"type": "nested"
|
||||
"paste_metadata": { "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": {
|
||||
"type": "text"
|
||||
}
|
||||
"paste_text": { "type": "text" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue