Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Search products, categories, brands or tags with ElasticSearch!

Notifications You must be signed in to change notification settings

Biz-mark/ElasticSearch-Shopaholic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticSearch for Shopaholic

This plugin allows you to use ElasticSearch as search engine for Shopaholic.

Benefits

  • Easy to install, easy to use
  • Opened to your new ideas and features as contributions.

Installation

Install plugin from marketplace:

php artisan plugin:install BizMark.ElasticSearchShopaholic

Add ElasticSearch hosts parameter to your .env

ELASTICSEARCH_HOSTS=127.0.0.1

Indexing

Every time you save Product, Category, Brand or Tag model, new data will be pushed to ElasticSearch.

If you want to reindex your existing data, just call this artisan command:

php artisan shopaholic:elastic.reindex

Using

To search, you need to use search() method at desired collection. Example:

$obProductCollection = ProductCollection::make()->active()->search('term');

© 2022, Biz-Mark under MIT License.

Developed by Nick Khaetsky at Biz-Mark.