diff --git a/lib/elastic_search_helper.rb b/lib/elastic_search_helper.rb index 700938d..920a0ab 100644 --- a/lib/elastic_search_helper.rb +++ b/lib/elastic_search_helper.rb @@ -31,8 +31,19 @@ class ElasticSearchHelper "mappings": { "_doc": { "properties": { - "type": { "type": "keyword" }, - "paste_metadata": { "type": "nested" } + "type": { "type": "keyword" }, + "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" } + } } } }