{"repo":"spatie/elasticsearch-search-string-parser","free":true,"listed":false,"github":"https://github.com/spatie/elasticsearch-search-string-parser","clone":"git clone https://github.com/spatie/elasticsearch-search-string-parser.git","description":"Parse a search string with filters, directives and sorts to a useable Elasticsearch query","language":"PHP","stars":50,"topics":["elasticsearch","search"],"license":"MIT","category":"data-pipelines","readme_excerpt":"Parse custom search strings and execute them using ElasticSearch This package allows you to convert a search string like foo bar status:active @john.doe to its corresponding ElasticSearch request. Any custom directives like status:active and @john.doe can be added using regex and the spatie/elasticsearch-query-builder . There's also basic support for grouping directives (e.g. group by:project ) and providing auto-completion suggestions for certain directives. In the example above, an ElasticSearch request is executed with the appropriate parameters set to search for results with the given company ( aperture ), user ( glados ) and subject string ( deadly neurotoxin ). The returned value is a \\Spatie\\ElasticsearchStringParser\\SearchResults object that contains search results and suggestions for the applied directives. Support us We invest a lot of resources into creating best in class open source packages . You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation You can install the package via composer: This package requires Elasticsearch 8 and the matching elasticsearch/elasticsearch 8.x PHP client. If you're still on Elasticsearch 7, use the 1.x release of this package. How it works: directives When creating a search string parser, you decide","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/elasticsearch-search-string-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}