June 2017
Beginner to intermediate
404 pages
8h 22m
English
Elasticsearch lets you search for a value across all the fields in the document. If you are exploring the data or you don't care about which field contains the search input, you can use the _all field. To make this possible, when you index a document, all the field values in the document are combined into one big string, separated by a space and indexed as the _all field. For example, we are indexing e-commerce order documents, and order documents contain buyer, seller, and item_title fields. An example order document is shown next:
PUT chapter3/order/1 { "buyer": "john", "seller": "jake", "item_title": "iphone", "order_date": "2017-02-08" }
When the preceding document is indexed along with the document ...
Read now
Unlock full access