Field. Store, analyzed memo

Source: Internet
Author: User

Field. Store. Yes, field. Index. not_analyzed
To understand the difference between field. Store. Yes and field. Store. No, you can see that as long as analyzed is used to create an index, it can be queried. The purpose of store is to return the corresponding content through full-text check. This is the purpose of the store in the index. Instead of loading data in the database by ID.
In addition, it is noted that analyzed in Versions later than merge E3 indicates word segmentation to create an index.

1. In the Code:
Doc. Add (new field (daodaolocation. locationindexfield. caddress. getindexname (), stmp, field. Store. No, field. Index. Analyzed ));

2. Luke analysis:
You can specify the caddress field in the term to check the hongxu and find the result.

3. Database Verification

 

1236878 bistro Zhou 10022 0 no.1151 hongxu Road, Changning district 021-6219-8800 (6332) 0 aishiguro 2011-05-28 1: 9999: World | 2: 10000: Asia | 294211: 10001: china | 303764: 10009: Shanghai region | 308272: 10004: Shanghai 4 0 0

The street1 attribute corresponding to this ID is found: no.1151 hongxu Road, Changning district, and stree1 is the caddress attribute in OBJ, which means that not only fields of field. Store. Yes will be indexed. Store. Yes is only returned for full-text search. Instead of secondary loading through dB or other media.

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.