Elasticsearch mapping set properties based on different data formats

Source: Internet
Author: User
Tags elasticsearch mapping

Disclaimer : Learn to explore notes, non-result definitions . Many of them may be wrong, the reference value is not big

Elasticsearch's mapping

Order number such as: ATTS000928732 type does not participle. index:not_analyzed

The order number is all data such as: 63745345637 such participle is possible.


put/order_v5{"Settings": {//Set 10 shards, understood as a partition in a table partition in a database similar to the concept, do not know whether it is appropriate "Number_of_shards": Ten}, "mappings": {        "Trades": {"_id": {"path": "ID"}, "Properties": {"id": {"type": "Integer", ID: Self-increment number//requirements: Query "store": true}, "name": {//Name: Jia Jie, johnson baby shower gel, 100w LED energy-saving lamp, outdoor multifunctional Folding chairs, etc.//requirements: Catch keywords, such as: Jia Jie + toothpaste or toothbrush;Johnson + Shower gel; Led+ energy-saving +100w; Outdoor + folding Chairs, etc./conclusion: if participle, it means that the product brand noun may be split, such as "Jia Jie", if not participle means that the user input requirements of high matching.         First, the default participle, try to see.        "Type": "String"}, "brand": {//brands: Pg,p&g, Procter and Gamble Group, stock, Lenovo Group, Lenovo computer, etc. "type": "String"}, "OrderNo": {//Order Number: ATTS000928732 "type": "string", "index": "Not_analyzed"}, "des Cription ": {//Description: 2015 Rose-scented Johnson baby shower gel, 550ml, pack//search: Require highlighting so set store:true. Keyword Weight: Shower gel, Johnson + shower gel or Rose            Flower + Shower gel or 550ml + shower gel or shower gel + Pack mail, {2015 + Rose Fragrance ...}} Settings: Must participle, and to control the "type": "String","Sort": true}, "date": {"type": "Date"}, "City": {"type": "String"}, "Qty": {Index invalid ' type ': ' Float '}, ' price ': {//Prices: Float index Invalid ' type ': ' FL Oat "}}}}}



Reference:

Official website elasticsearch.org

http://donlianli.iteye.com/blog/1975727

Http://mednoter.com/ElasticSearch.html

....... Not listed, admire those notes to do well.



Elasticsearch mapping set properties based on different data formats

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.