Created
January 13, 2019 16:11
-
-
Save wakawaka54/417602c8f73a613830904b20398b7bac to your computer and use it in GitHub Desktop.
ElasticsearchMapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "products": { | |
| "mappings": { | |
| "item": { | |
| "dynamic_templates": [ | |
| { | |
| "stringSort": { | |
| "path_match": "stringSort.*", | |
| "mapping": { | |
| "type": "keyword" | |
| } | |
| } | |
| }, | |
| { | |
| "number_sort": { | |
| "path_match": "numberSort.*", | |
| "mapping": { | |
| "type": "double" | |
| } | |
| } | |
| }, | |
| { | |
| "searchResultData": { | |
| "path_match": "searchResultData.*", | |
| "mapping": { | |
| "doc_values": "false", | |
| "index": "false" | |
| } | |
| } | |
| } | |
| ], | |
| "properties": { | |
| "completionTerms": { | |
| "type": "completion", | |
| "analyzer": "simple", | |
| "preserve_separators": true, | |
| "preserve_position_increments": true, | |
| "max_input_length": 50 | |
| }, | |
| "docId": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "lastUpdated": { | |
| "type": "date" | |
| }, | |
| "numberSort": { | |
| "properties": { | |
| "category": { | |
| "type": "double" | |
| }, | |
| "grossPrice": { | |
| "type": "double" | |
| }, | |
| "lotSize": { | |
| "type": "double" | |
| }, | |
| "orders": { | |
| "type": "double" | |
| }, | |
| "ratings": { | |
| "type": "double" | |
| }, | |
| "searchCategory": { | |
| "type": "double" | |
| }, | |
| "searchTopLevelCategory": { | |
| "type": "double" | |
| }, | |
| "sellerRating": { | |
| "type": "double" | |
| }, | |
| "shippingPrice": { | |
| "type": "double" | |
| }, | |
| "stock": { | |
| "type": "double" | |
| }, | |
| "totalGrossPrice": { | |
| "type": "double" | |
| }, | |
| "totalUnitPrice": { | |
| "type": "double" | |
| }, | |
| "unitPrice": { | |
| "type": "double" | |
| }, | |
| "updateTime": { | |
| "type": "double" | |
| } | |
| } | |
| }, | |
| "searchData": { | |
| "properties": { | |
| "fullText": { | |
| "type": "text" | |
| }, | |
| "fullTextBoosted": { | |
| "type": "text" | |
| }, | |
| "numberFacets": { | |
| "properties": { | |
| "facetName": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "facetValue": { | |
| "type": "float" | |
| } | |
| } | |
| }, | |
| "numberFacts": { | |
| "type": "nested", | |
| "properties": { | |
| "facetName": { | |
| "type": "keyword", | |
| "normalizer": "lowercase_normalize" | |
| }, | |
| "facetValue": { | |
| "type": "double" | |
| } | |
| } | |
| }, | |
| "stringFacets": { | |
| "type": "nested", | |
| "properties": { | |
| "facetName": { | |
| "type": "keyword", | |
| "normalizer": "lowercase_normalize" | |
| }, | |
| "facetValue": { | |
| "type": "keyword", | |
| "normalizer": "lowercase_normalize" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "searchResultData": { | |
| "properties": { | |
| "category": { | |
| "type": "long", | |
| "index": false | |
| }, | |
| "detailUrl": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "grossPrice": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "grossUnitPrice": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "lotSize": { | |
| "type": "long", | |
| "index": false | |
| }, | |
| "lotUnit": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "name": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "netPrice": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "netUnitPrice": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "previewImage": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "productId": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "sellerPositiveFeedback": { | |
| "type": "long", | |
| "index": false | |
| }, | |
| "sellerScore": { | |
| "type": "long", | |
| "index": false | |
| }, | |
| "sellerTotalFeedback": { | |
| "type": "long", | |
| "index": false | |
| }, | |
| "sellerTotalItems": { | |
| "type": "long", | |
| "index": false | |
| }, | |
| "sellerTotalScore": { | |
| "type": "long", | |
| "index": false | |
| }, | |
| "shippingCost": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "shippingCostPerPiece": { | |
| "type": "text", | |
| "index": false | |
| }, | |
| "sold": { | |
| "type": "long", | |
| "index": false | |
| }, | |
| "stock": { | |
| "type": "long", | |
| "index": false | |
| }, | |
| "storeName": { | |
| "type": "text", | |
| "index": false | |
| } | |
| } | |
| }, | |
| "stringSort": { | |
| "properties": { | |
| "allShippingTypes": { | |
| "type": "keyword" | |
| }, | |
| "freeShipping": { | |
| "type": "keyword" | |
| }, | |
| "lotunit": { | |
| "type": "keyword" | |
| }, | |
| "productId": { | |
| "type": "keyword" | |
| }, | |
| "shippingType": { | |
| "type": "keyword" | |
| } | |
| } | |
| }, | |
| "version": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment