Download the PHP package triadev/laravel-elasticsearch-dsl without Composer

On this page you can find all versions of the php package triadev/laravel-elasticsearch-dsl. 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 laravel-elasticsearch-dsl

laravel-elasticsearch-dsl

A service provider for laravel with a fluent elasticsearch query and aggregation dsl.

Travis Coveralls CodeCov

Scrutinizer Code Quality Code Coverage Build Status

Latest stable Latest development Monthly installs

Supported laravel versions

Laravel 5.5 Laravel 5.6 Laravel 5.7

Supported elasticsearch versions

Elasticsearch 6.0 Elasticsearch 6.1 Elasticsearch 6.2 Elasticsearch 6.3 Elasticsearch 6.4

Main features

Installation

Composer

composer require triadev/laravel-elasticsearch-dsl

Application

The package is registered through the package discovery of laravel and Composer.

https://laravel.com/docs/5.7/packages

Once installed you can now publish your config file and set your correct configuration for using the package.

This will create a file .

Configuration

Key Env Value Default
index LARAVEL_ELASTICSEARCH_DSL_INDEX STRING default_index
metrics.enabled LARAVEL_ELASTICSEARCH_DSL_METRICS BOOL false
metrics.buckets.search --- ARRAY array of buckets in milliseconds
metrics.buckets.suggest --- ARRAY array of buckets in milliseconds

Metrics

Metrics are generated with the package: LaravelPrometheusExporter
Detailed configuration options are documented in the readme of the package.

The following metrics are generated as long as :

Namespace: triadev_laravel_elasticsearch_dsl

Histogram

Name Handler Description
query_duration_milliseconds search execution time of search query
query_duration_milliseconds suggest execution time of suggestion query

Usage

This package offers a dsl for elasticsearch. The entry point for each query / aggregation is a facade.

Triadev\Es\Dsl\Facade\ElasticDsl;

Each query / aggregation returns an object containing the search result and aggregation.

Triadev\Es\Dsl\Model\SearchResult

Bool

For every query that is based on bool, the bool status can be changed.

Default bool state: must

Nested bool query

A nested query is realized with .

TermLevel

matchAll, exists, fuzzy, ids, prefix, range, regexp, term, terms, type, wildcard

Fulltext

match, matchPhrase, matchPhrasePrefix, multiMatch, queryString, simpleQueryString, commonTerms

Geo

geoBoundingBox, geoDistance, geoPolygon, geoShape

Compound

functionScore, constantScore, boosting, disMax

Joining

nested, hasChild, hasParent

Specialized

moreLikeThis

InnerHit

nestedInnerHit, parentInnerHit

Individual index and type

To set an individual index or type per query you have two overwrite methods.

Aggregation

Bucketing, Metric, Pipeline

Suggestions

term, phrase, completion

Reporting Issues

If you do find an issue, please feel free to report it with GitHub's bug tracker for this project.

Alternatively, fork the project and make a pull request. :)

Testing

  1. docker-compose -f docker-compose.yml up
  2. composer test

Contributing

Please see CONTRIBUTING for details.

Credits

Other

Project related links

License

The code for laravel-elasticsearch-dsl is distributed under the terms of the MIT license (see LICENSE).


All versions of laravel-elasticsearch-dsl with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-json Version *
elasticsearch/elasticsearch Version ^6.0
laravel/framework Version 5.5.* || 5.6.* || 5.7.*
ongr/elasticsearch-dsl Version ^6.0
triadev/laravel-elasticsearch-provider Version ^3.0
triadev/laravel-prometheus-exporter Version ^1.6
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 triadev/laravel-elasticsearch-dsl contains the following files

Loading the files please wait ....