├── .github └── workflows │ └── run-checks.yml ├── .gitignore ├── LICENSE ├── README.md ├── Vagrantfile ├── composer.json ├── docker-compose.yml ├── docs ├── document-management.md ├── index-management.md ├── query-building.md ├── re-useable-fragments.md └── result-parsing.md ├── examples ├── README.md ├── basic-query-with-data.php ├── basic-query.php ├── basic.php └── bootstrap.php ├── install-elasticsearch.sh ├── install-php7.sh ├── phpstan-ignore.neon ├── phpstan.neon ├── phpunit.xml ├── src ├── Abstracts │ ├── AbstractFragment.php │ ├── AbstractIndex.php │ ├── AbstractManager.php │ ├── AbstractQuery.php │ └── AbstractResultParser.php ├── ElasticSearcher.php ├── Environment.php ├── Fragments │ ├── Analyzers │ │ └── StandardAnalyzer.php │ ├── Queries │ │ ├── TermQuery.php │ │ └── TermsQuery.php │ └── Traits │ │ ├── PaginatedTrait.php │ │ └── SortableTrait.php ├── Managers │ ├── DocumentsManager.php │ └── IndicesManager.php ├── Parsers │ ├── ArrayResultParser.php │ └── FragmentParser.php └── Traits │ └── BodyTrait.php └── tests ├── ClusterHealthTest.php ├── ElasticSearcherTest.php ├── ElasticSearcherTestCase.php ├── EnvironmentTest.php ├── Fragments ├── Analyzers │ └── StandardAnalyzerTest.php ├── Queries │ ├── TermQueryTest.php │ └── TermsQueryTest.php └── Traits │ ├── PaginatedTraitTest.php │ └── SortableTraitTest.php ├── Managers ├── DocumentsManagerTest.php └── IndicesManagerTest.php ├── Parsers └── FragmentParserTest.php ├── Queries └── QueryTest.php ├── Traits └── BodyTraitTest.php ├── bootstrap.php └── dummy ├── Fragments └── Filters │ └── IDFilter.php ├── Indexes ├── BooksIndex.php └── MoviesIndex.php └── Queries ├── BooksFrom2014Query.php ├── CountMoviesFrom2014Query.php ├── MovieWithIDXQuery.php ├── MoviesFrom2014Query.php ├── MoviesFromXYearQuery.php ├── PaginatedMoviesFrom2014Query.php └── SortedQuery.php /.github/workflows/run-checks.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/.github/workflows/run-checks.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | composer.lock 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/README.md -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/Vagrantfile -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/composer.json -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/document-management.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/docs/document-management.md -------------------------------------------------------------------------------- /docs/index-management.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/docs/index-management.md -------------------------------------------------------------------------------- /docs/query-building.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/docs/query-building.md -------------------------------------------------------------------------------- /docs/re-useable-fragments.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/docs/re-useable-fragments.md -------------------------------------------------------------------------------- /docs/result-parsing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/docs/result-parsing.md -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/basic-query-with-data.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/examples/basic-query-with-data.php -------------------------------------------------------------------------------- /examples/basic-query.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/examples/basic-query.php -------------------------------------------------------------------------------- /examples/basic.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/examples/basic.php -------------------------------------------------------------------------------- /examples/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/examples/bootstrap.php -------------------------------------------------------------------------------- /install-elasticsearch.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/install-elasticsearch.sh -------------------------------------------------------------------------------- /install-php7.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/install-php7.sh -------------------------------------------------------------------------------- /phpstan-ignore.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/phpstan-ignore.neon -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/phpstan.neon -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Abstracts/AbstractFragment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Abstracts/AbstractFragment.php -------------------------------------------------------------------------------- /src/Abstracts/AbstractIndex.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Abstracts/AbstractIndex.php -------------------------------------------------------------------------------- /src/Abstracts/AbstractManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Abstracts/AbstractManager.php -------------------------------------------------------------------------------- /src/Abstracts/AbstractQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Abstracts/AbstractQuery.php -------------------------------------------------------------------------------- /src/Abstracts/AbstractResultParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Abstracts/AbstractResultParser.php -------------------------------------------------------------------------------- /src/ElasticSearcher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/ElasticSearcher.php -------------------------------------------------------------------------------- /src/Environment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Environment.php -------------------------------------------------------------------------------- /src/Fragments/Analyzers/StandardAnalyzer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Fragments/Analyzers/StandardAnalyzer.php -------------------------------------------------------------------------------- /src/Fragments/Queries/TermQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Fragments/Queries/TermQuery.php -------------------------------------------------------------------------------- /src/Fragments/Queries/TermsQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Fragments/Queries/TermsQuery.php -------------------------------------------------------------------------------- /src/Fragments/Traits/PaginatedTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Fragments/Traits/PaginatedTrait.php -------------------------------------------------------------------------------- /src/Fragments/Traits/SortableTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Fragments/Traits/SortableTrait.php -------------------------------------------------------------------------------- /src/Managers/DocumentsManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Managers/DocumentsManager.php -------------------------------------------------------------------------------- /src/Managers/IndicesManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Managers/IndicesManager.php -------------------------------------------------------------------------------- /src/Parsers/ArrayResultParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Parsers/ArrayResultParser.php -------------------------------------------------------------------------------- /src/Parsers/FragmentParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Parsers/FragmentParser.php -------------------------------------------------------------------------------- /src/Traits/BodyTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/src/Traits/BodyTrait.php -------------------------------------------------------------------------------- /tests/ClusterHealthTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/ClusterHealthTest.php -------------------------------------------------------------------------------- /tests/ElasticSearcherTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/ElasticSearcherTest.php -------------------------------------------------------------------------------- /tests/ElasticSearcherTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/ElasticSearcherTestCase.php -------------------------------------------------------------------------------- /tests/EnvironmentTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/EnvironmentTest.php -------------------------------------------------------------------------------- /tests/Fragments/Analyzers/StandardAnalyzerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Fragments/Analyzers/StandardAnalyzerTest.php -------------------------------------------------------------------------------- /tests/Fragments/Queries/TermQueryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Fragments/Queries/TermQueryTest.php -------------------------------------------------------------------------------- /tests/Fragments/Queries/TermsQueryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Fragments/Queries/TermsQueryTest.php -------------------------------------------------------------------------------- /tests/Fragments/Traits/PaginatedTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Fragments/Traits/PaginatedTraitTest.php -------------------------------------------------------------------------------- /tests/Fragments/Traits/SortableTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Fragments/Traits/SortableTraitTest.php -------------------------------------------------------------------------------- /tests/Managers/DocumentsManagerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Managers/DocumentsManagerTest.php -------------------------------------------------------------------------------- /tests/Managers/IndicesManagerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Managers/IndicesManagerTest.php -------------------------------------------------------------------------------- /tests/Parsers/FragmentParserTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Parsers/FragmentParserTest.php -------------------------------------------------------------------------------- /tests/Queries/QueryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Queries/QueryTest.php -------------------------------------------------------------------------------- /tests/Traits/BodyTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/Traits/BodyTraitTest.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/bootstrap.php -------------------------------------------------------------------------------- /tests/dummy/Fragments/Filters/IDFilter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Fragments/Filters/IDFilter.php -------------------------------------------------------------------------------- /tests/dummy/Indexes/BooksIndex.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Indexes/BooksIndex.php -------------------------------------------------------------------------------- /tests/dummy/Indexes/MoviesIndex.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Indexes/MoviesIndex.php -------------------------------------------------------------------------------- /tests/dummy/Queries/BooksFrom2014Query.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Queries/BooksFrom2014Query.php -------------------------------------------------------------------------------- /tests/dummy/Queries/CountMoviesFrom2014Query.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Queries/CountMoviesFrom2014Query.php -------------------------------------------------------------------------------- /tests/dummy/Queries/MovieWithIDXQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Queries/MovieWithIDXQuery.php -------------------------------------------------------------------------------- /tests/dummy/Queries/MoviesFrom2014Query.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Queries/MoviesFrom2014Query.php -------------------------------------------------------------------------------- /tests/dummy/Queries/MoviesFromXYearQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Queries/MoviesFromXYearQuery.php -------------------------------------------------------------------------------- /tests/dummy/Queries/PaginatedMoviesFrom2014Query.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Queries/PaginatedMoviesFrom2014Query.php -------------------------------------------------------------------------------- /tests/dummy/Queries/SortedQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madewithlove/elasticsearcher/HEAD/tests/dummy/Queries/SortedQuery.php --------------------------------------------------------------------------------