Download the PHP package opsource/queryadapter without Composer

On this page you can find all versions of the php package opsource/queryadapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package queryadapter

Here’s an optimized version of your document:


QueryAdapter

QueryAdapter is a powerful Laravel package that provides an intuitive abstraction layer for interacting with Elasticsearch indices. It includes a set of query builders designed for searching, aggregating, and suggesting data, while offering essential utilities for efficient index management. This package enables developers to work with Elasticsearch in a structured and efficient way, eliminating the complexity of low-level queries.

Installation

To get started, install the package via Composer:

Usage

Setting Up

Before using the QueryAdapter package, ensure that your Elasticsearch client is properly configured. The package relies on ElasticClient to manage all Elasticsearch communications, ensuring smooth data indexing and retrieval.

Interacting with Indices

The InteractsWithIndex trait offers powerful methods to manage and query Elasticsearch indices efficiently.

Bulk Insert

Insert multiple documents into an Elasticsearch index in a single operation for improved performance:

Fetch Index Information

Retrieve detailed information about a specific index, including settings and mappings:

Delete an Index

Remove an index when it is no longer needed:

Create a New Index with Custom Settings

Define and create a new Elasticsearch index with custom settings:

Refresh an Index

Make recent operations visible to search queries:

Querying Data

QueryAdapter simplifies querying with its builder-based approach.

Search Query

Perform a basic search query:

Index Class Example

Create an index class similar to an Eloquent model:

Set a unique document attribute name for $indicator, which is used as an additional sort in search_after.

Query Example

Perform a search with complex filters and sorting:

Filtering

Nested Queries

nested_field must have nested type. Subqueries can only use subdocument fields.

Full-Text Search

Sorting

Use dedicated sort methods for each sort type:

Pagination

Offset Pagination

Cursor Pagination

Aggregation

Create aggregation queries:

Aggregate Types

Suggesting

Create suggest queries for autocomplete or typo correction:

Suggester Types

Term Suggester:

Phrase Suggester:

CLI Commands

engine:make

Generates various engine components:

engine:make-facade

Generates a facade for a search engine model.

engine:make-directive

Creates a directive class for a search engine model.

Query Log

Enable query logging to track executed queries:

Environment Variables

Configure the following environment variables:

Elasticsearch Version Compatibility

Separate releases are created for Elasticsearch 7 and 8. Development for each version occurs in corresponding branches.

Contributing

See CONTRIBUTING for details.

License

MIT License. See LICENSE.md for more information.


This version improves readability and structure while maintaining clarity. It consolidates sections, removes redundancy, and ensures consistency throughout the document.


All versions of queryadapter with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
laravel/framework Version >=v10.48
elasticsearch/elasticsearch Version >=v8.1.0
opsource/rabbitmq Version >=v1.0.3
symfony/http-client Version ^7.0
symfony/psr-http-message-bridge Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package opsource/queryadapter contains the following files

Loading the files please wait ....