IMPORTANT
: No additional bug fixes or documentation updates will be released for this version. For the latest information, see the
current release documentation
.
Overview »
Elasticsearch-PHP
PHP Client:
8.17 (current)
7.17
1.x
other versions
other versions:
master
8.x
8.17 (current)
8.16
8.15
8.14
8.13
8.12
8.11
8.10
8.9
8.8
8.7
8.6
8.5
8.4
8.3
8.2
8.1
8.0
7.17
7.16
7.x
6.x
5.x
2.x
1.x
0.4
Overview
Quickstart
Installation
Index a document
Get a document
Search for a document
Delete a document
Delete an index
Create an index
Wrap up
Installation
Version Matrix
Composer Installation
--no-dev flag
Configuration
Host Configuration
Ignoring exceptions
Providing custom query parameters
Configuring the Logger
Full list of configurations
Dealing with JSON Arrays and Objects in PHP
Empty Objects
Arrays of Objects
Arrays of empty objects
Index Operations
Create an index
Create an index (advanced example)
Delete an index
Put Settings API
Get Settings API
Put Mappings API
Get Mappings API
Other APIs in the Indices Namespace
Indexing Operations
Single document indexing
Bulk Indexing
Search Operations
Match Query
Bool Queries
A more complicated example
Function_Score query
Scan/Scroll
Namespaces
The Connection Pool
staticNoPingConnectionPool (default)
staticConnectionPool
sniffingConnectionPool
Which connection pool to choose? PHP and connection pooling
Changing the Connection Pool
Selectors
RoundRobinSelector (Default)
StickyRoundRobinSelector
RandomSelector
Changing or replacing Selector Class
Connections
GuzzleConnection (default)
CurlMultiConnection
Changing your ConnectionClass
Extending an existing Connection Class
Writing your own Connection Class
Getting information about the last request
Serializers
SmartSerializer
ArrayToJSONSerializer
EverythingToJSONSerializer
Implementing your own Serializer
PHP Version Requirement
Bug #54367
Bug #43200
Conclusion
Security
HTTP Authentication
SSL Configuration
Using Authentication with SSL
Most Popular
Video
Get Started with Elasticsearch
Video
Intro to Kibana
Video
ELK for Logs & Metrics