All Projects → babenkoivan → Elastic Scout Driver Plus

babenkoivan / Elastic Scout Driver Plus

Licence: mit
Extension for Elastic Scout Driver

Projects that are alternatives of or similar to Elastic Scout Driver Plus

Elastic Scout Driver
Elasticsearch driver for Laravel Scout
Stars: ✭ 74 (-17.78%)
Mutual labels:  elastic, elasticsearch, laravel, driver
Scout Elasticsearch Driver
This package offers advanced functionality for searching and filtering data in Elasticsearch.
Stars: ✭ 1,047 (+1063.33%)
Mutual labels:  elastic, elasticsearch, laravel
Laravel Docker Elasticsearch
This is a simple repo for practicing elasticsearch with laravel and docker.
Stars: ✭ 18 (-80%)
Mutual labels:  elasticsearch, laravel
Php Es Mapper
An elasticsearch simple mapping ORM for php
Stars: ✭ 25 (-72.22%)
Mutual labels:  elastic, elasticsearch
Laravel Dropbox Driver
A storage extension for Dropbox.
Stars: ✭ 42 (-53.33%)
Mutual labels:  laravel, driver
Elasticsql
convert sql to elasticsearch DSL in golang(go)
Stars: ✭ 687 (+663.33%)
Mutual labels:  elastic, elasticsearch
Laravel Elasticsearch
An easy way to use the official Elastic Search client in your Laravel applications.
Stars: ✭ 717 (+696.67%)
Mutual labels:  elasticsearch, laravel
Elastic data
Elasticsearch datasets ready for bulk loading
Stars: ✭ 30 (-66.67%)
Mutual labels:  elastic, elasticsearch
Laravel Scout Elasticsearch
Search among multiple models with ElasticSearch and Laravel Scout
Stars: ✭ 423 (+370%)
Mutual labels:  elasticsearch, laravel
Elasticsearch Spring Boot Spring Data
🏆 Starter example for using Elasticsearch repository with Springboot
Stars: ✭ 65 (-27.78%)
Mutual labels:  elastic, elasticsearch
Elasticsearch Cli
Command line interface for ElasticSearch
Stars: ✭ 70 (-22.22%)
Mutual labels:  elastic, elasticsearch
Laravel Shopify
A full-featured Laravel package for aiding in Shopify App development
Stars: ✭ 634 (+604.44%)
Mutual labels:  laravel, driver
Graphql Compose Elasticsearch
Hide Elastic Search REST API behind GraphQL.
Stars: ✭ 498 (+453.33%)
Mutual labels:  elastic, elasticsearch
Adldap2 Laravel
LDAP Authentication & Management for Laravel
Stars: ✭ 825 (+816.67%)
Mutual labels:  laravel, driver
Plastic
Plastic is an Elasticsearch ODM and mapper for Laravel. It renders the developer experience more enjoyable while using Elasticsearch, by providing a fluent syntax for mapping, querying, and storing eloquent models.
Stars: ✭ 494 (+448.89%)
Mutual labels:  elasticsearch, laravel
Laravel Scout Elastic
Elastic Driver for Laravel Scout
Stars: ✭ 886 (+884.44%)
Mutual labels:  elasticsearch, laravel
Laravel Scout Elastic Demo
笑来搜原型 Laravel Scout & ElasticSearch ik
Stars: ✭ 403 (+347.78%)
Mutual labels:  elasticsearch, laravel
Pfelk
pfSense/OPNsense + ELK
Stars: ✭ 417 (+363.33%)
Mutual labels:  elastic, elasticsearch
Kbframe
一款基于Laravel框架开发的现代化二次开发框架,是高性能,高效率,高质量的企业级开发框架,具有驱动领域,敏捷开发,轻易上手,高内聚低耦合,开箱即用等特点。
Stars: ✭ 47 (-47.78%)
Mutual labels:  elasticsearch, laravel
Elasticquent
Maps Laravel Eloquent models to Elasticsearch types
Stars: ✭ 1,172 (+1202.22%)
Mutual labels:  elasticsearch, laravel

Buy Me A Coffee


Extension for Elastic Scout Driver.

Contents

Features

Elastic Scout Driver Plus supports:

Compatibility

The current version of Elastic Scout Driver Plus has been tested with the following configuration:

  • PHP 7.2-8.0
  • Elasticsearch 7.0-7.10
  • Laravel 6.x-8.x
  • Laravel Scout 7.x-8.x
  • Elastic Scout Driver 1.x

Installation

The library can be installed via Composer:

composer require babenkoivan/elastic-scout-driver-plus

Note, that the library doesn't work without Elastic Scout Driver. If it's not installed yet, please follow the installation steps described here. If you are already using Elastic Scout Driver, I recommend you to update it before installing Elastic Scout Driver Plus:

composer update babenkoivan/elastic-scout-driver

If you want to use Elastic Scout Driver Plus with Lumen framework refer to this guide.

Usage

Elastic Scout Driver Plus comes with a new trait QueryDsl, which you need to add in your model to activate advanced search functionality:

class Book extends Model
{
    use Searchable;
    use QueryDsl;
}

This trait adds a bunch of factory methods in your model: boolSearch(), matchSearch(), rawSearch(), etc. Each method creates a search request builder for specific query type. For example, if you want to make a match query use matchSearch() method:

$searchResult = Book::matchSearch()
    ->field('title')
    ->query('My book')
    ->fuzziness('AUTO')
    ->size(10)
    ->execute();

Choose factory method depending on the query type you wish to perform:

If there is no method for the query type you need, you can use rawSearch():

$searchResult = Book::rawSearch()
    ->query(['match' => ['title' => 'The Book']])
    ->execute();

It is important to know, that all search request builders share the same generic methods, which provide such basic functionality as sorting, highlighting, etc. Check the full list of available generic methods and the usage examples here.

Finally, refer to this page to get familiar with $searchResult object, pagination and more.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].