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.