almost there with the mappings for metadata
This commit is contained in:
parent
18c1bde0a3
commit
319822fdad
1 changed files with 13 additions and 2 deletions
|
@ -31,8 +31,19 @@ class ElasticSearchHelper
|
||||||
"mappings": {
|
"mappings": {
|
||||||
"_doc": {
|
"_doc": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": { "type": "keyword" },
|
"type": { "type": "keyword" },
|
||||||
"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" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue