diff --git a/lib/elastic_search_helper.rb b/lib/elastic_search_helper.rb index cf24423..67c2b7e 100644 --- a/lib/elastic_search_helper.rb +++ b/lib/elastic_search_helper.rb @@ -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" } } } }