Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

homersimpsons/es-qb

Open more actions menu

Repository files navigation

EsQb

An Elasticsearch Query Builder.

You should choose EsQb if you need the following requirements:

  • Strong typing: Ensure your code will work thanks to static analysis
  • Fearless upgrades: Upgrading to a future Elasticsearch version will just require a composer update

Contributing

How to contribute

The current goal is to map every query to specific classes.

When adding a query you need to add its unit test(s) and integration test.

Tests

Unit tests

Unit tests do not need any connection, they are located under tests/Unit directory.

To run this tests please use composer test.

Integration tests

Integration tests do need an active Elasticsearch instance, they are located under tests/Integration directory.

You can create an instance with the following docker command:

docker run -d --name elasticsearch -p 9200:9200 -e "discovery.type=single-node" elasticsearch:7.9.0

Once the instance is running you can run the tests against it with composer test:integration

Inspiration

As a base inspiration there is The official Elasticsearch query builder.

About

An Elasticsearch Query Builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.