Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "processors":[
- {
- "date":{
- "field":"last_modified",
- "target_field":"timestamp",
- "formats":[
- "yyyy-MM-dd'T'HH:mm:ssZ"
- ],
- "timezone":"Europe/Berlin"
- }
- }
- ],
- "settings":{
- "analysis":{
- "filter":{
- "filter_quick_search_edge_ngram":{
- "type":"edge_ngram",
- "min_gram":"1",
- "max_gram":"20"
- },
- "shingle_filter":{
- "type":"shingle",
- "min_shingle_size":2,
- "max_shingle_size":10,
- "output_unigrams":"false"
- }
- },
- "analyzer":{
- "analyzer_single_characters":{
- "type":"custom",
- "tokenizer":"tokenizer_single_characters"
- },
- "analyzer_quick_search":{
- "filter":[
- "lowercase",
- "asciifolding",
- "filter_quick_search_edge_ngram"
- ],
- "type":"custom",
- "tokenizer":"standard"
- },
- "analyzer_shingle":{
- "type":"custom",
- "tokenizer":"standard",
- "filter":[
- "lowercase",
- "asciifolding",
- "shingle_filter"
- ]
- }
- },
- "tokenizer":{
- "tokenizer_single_characters":{
- "type":"nGram",
- "min_gram":"1",
- "max_gram":"1"
- }
- }
- }
- },
- "mappings":{
- "partner":{
- "_all":{
- "enabled":false
- },
- "properties":{
- "title":{
- "type":"text",
- "fielddata": true,
- "eager_global_ordinals": true,
- "similarity":"BM25",
- "index_options":"offsets",
- "fields":{
- "keyword":{
- "type":"keyword"
- },
- "length":{
- "type":"token_count",
- "analyzer":"analyzer_single_characters"
- },
- "shingles":{
- "type":"text",
- "analyzer":"analyzer_shingle"
- }
- },
- "analyzer":"analyzer_quick_search",
- "search_analyzer":"standard"
- },
- "ws_id":{
- "type":"keyword",
- "index":true
- },
- "identifier":{
- "type":"keyword",
- "index":true
- },
- "program_id":{
- "type":"integer",
- "index":false
- },
- "description":{
- "type":"text",
- "index":true
- },
- "link":{
- "type":"keyword",
- "index":false
- },
- "image":{
- "type":"keyword",
- "index":false
- },
- "active":{
- "type":"boolean",
- "index":true
- },
- "shipping_countries":{
- "type":"keyword",
- "index":true
- },
- "country":{
- "type":"keyword",
- "index":true
- },
- "top_seller":{
- "type":"boolean",
- "index":true
- },
- "product_states":{
- "type":"keyword",
- "index":false
- },
- "feed_urls": {
- "type": "keyword",
- "index": false
- }
- }
- },
- "products":{
- "_all":{
- "enabled":false
- },
- "_parent": {
- "type": "partner"
- },
- "properties":{
- "title":{
- "type":"text",
- "fielddata": true,
- "similarity":"BM25",
- "index_options":"offsets",
- "eager_global_ordinals": true,
- "fields":{
- "keyword":{
- "type":"keyword"
- },
- "length":{
- "type":"token_count",
- "analyzer":"analyzer_single_characters"
- },
- "shingles":{
- "type":"text",
- "analyzer":"analyzer_shingle"
- }
- },
- "analyzer":"analyzer_quick_search",
- "search_analyzer":"standard"
- },
- "art_num":{
- "type":"keyword",
- "index":true
- },
- "description":{
- "type":"text",
- "index":true
- },
- "images":{
- "type":"keyword",
- "index":false
- },
- "link":{
- "type":"keyword",
- "index":false
- },
- "category_id":{
- "type":"integer",
- "index":true
- },
- "manufacturer":{
- "type":"keyword",
- "index":true
- },
- "brand":{
- "type":"keyword",
- "index":true
- },
- "ean":{
- "type":"keyword",
- "index":true
- },
- "upc":{
- "type":"keyword",
- "index":false
- },
- "distributor":{
- "type":"keyword",
- "index":true
- },
- "mpn":{
- "type":"keyword",
- "index":false
- },
- "state":{
- "type":"keyword",
- "index":true
- },
- "price":{
- "type":"integer",
- "index":true
- },
- "base_price":{
- "type":"integer",
- "index":true
- },
- "update_date":{
- "type":"date",
- "format":"yyyy-MM-dd HH:mm:ss.SSS||yyyy-MM-dd'T'HH:mm:ssZ",
- "index":true
- },
- "shipping_costs":{
- "type":"integer",
- "index":true
- },
- "available":{
- "type":"boolean",
- "index":true
- },
- "available_text":{
- "type":"keyword",
- "index":false
- },
- "discounted":{
- "type":"boolean",
- "index":true
- },
- "created":{
- "type":"date",
- "format":"yyyy-MM-dd HH:mm:ss.SSS||yyyy-MM-dd'T'HH:mm:ssZ",
- "index":false
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment