Lines Matching refs:s
109 1. Add `elasticsearch/elasticsearch` as a dependency in your project's `composer.json` file (change version to suit your version of Elasticsearch, for instance for ES 7.0):
122 curl -s http://getcomposer.org/installer | php
131 4. Require Composer's autoloader
133 Composer also prepares an autoload file that's capable of autoloading all the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process:
209 Let's get the document that we just indexed. This will simply return the document:
265 Searching is a hallmark of Elasticsearch, so let's perform a search. We are going to use the Match query as a demonstration:
333 Alright, let's go ahead and delete the document that we added previously:
371 Due to the dynamic nature of Elasticsearch, the first document we added automatically built an index with some default settings. Let's delete that index because we want to specify our own settings later:
393 Now that we are starting fresh (no data or index), let's add a new index with some custom settings: