2017 © Pedro PelΓ‘ez
 

library elasticvis

ElasticSearch for VisBuilder CMS

image

matchish/elasticvis

ElasticSearch for VisBuilder CMS

  • Monday, December 12, 2016
  • by Husband
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

elasticvis

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Install

Via Composer, (*2)

``` bash $ composer require matchish/elasticvis, (*3)


ДобавляСм Π² Ρ„Π°ΠΉΠ»Π΅ app.php Π² Π±Π»ΠΎΠΊ providers ```php Matchish\ElasticVis\ElasticVisServiceProvider::class,

ΠŸΡƒΠ±Π»ΠΈΠΊΡƒΠ΅ΠΌ рСсурсы ``` bash $ php artisan vendor:publish --tag=elasticvis, (*4)


ВыполняСм ΠΌΠΈΠ³Ρ€Π°Ρ†ΠΈΠΈ ``` bash $ php artisan migrate

Usage

Π’ ΠΊΠΎΠ½Ρ„ΠΈΠ³Π΅ elasticvis.php прописываСм имя индСкса ΠΈ ΠΌΠΎΠ΄Π΅Π»ΠΈ ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Π΅ Π½ΡƒΠΆΠ½ΠΎ ΠΈΠ½Π΄Π΅ΠΊΡΠΈΡ€ΠΎΠ²Π°Ρ‚ΡŒ, (*5)

``` php 'default_index' => 'project_name', 'models' => ['Article', 'Product'],, (*6)

Π’ ΠΌΠΎΠ΄Π΅Π»ΠΈ ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Π΅ Π±ΡƒΠ΄ΡƒΡ‚ ΠΈΠ½Π΄Π΅ΠΊΡΠΈΡ€ΠΎΠ²Π°Ρ‚ΡŒΡΡ добавляСм ΠΌΠ΅Ρ‚ΠΎΠ΄
``` php
   public function getCategoryIdAttribute()
    {
        return $this->id_category;
    }

Π’ ΠΊΠΎΠ½Ρ‚Ρ€ΠΎΠ»Π»Π΅Ρ€ добавляСм ΠΌΠ΅Ρ‚ΠΎΠ΄Ρ‹ ``` php public function search() { $query = Request::input('q'); $searchResults = (new \Matchish\ElasticVis\Search)->search($query, [\Article::class, \Product::class]); return view('pages.search', compact('searchResults')); }, (*7)

public function instantsearch()
{
    $query = Request::input('q');
    (new \Matchish\ElasticVis\Search)->instantsearch($query, [\Article::class, \Product::class]);
}
И Ρ€ΠΎΡƒΡ‚Ρ‹ для Π½ΠΈΡ…

Π˜Π½Π΄Π΅ΠΊΡΠΈΡ€ΡƒΠ΅ΠΌ ΠΌΠΎΠ΄Π΅Π»ΠΈ
``` bash
$ php artisan elasticvis:reindex

ΠŸΡ€ΠΈ ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠΈ ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ индСкс Π±ΡƒΠ΄Π΅Ρ‚ ΠΎΠ±Π½ΠΎΠ²Π»ΡΡ‚ΡŒΡ автоматичСски., (*8)

Change log

Please see CHANGELOG for more information what has changed recently., (*9)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*10)

Security

If you discover any security related issues, please email husband.sergey@gmail.com instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

12/12 2016

dev-master

9999999-dev https://github.com/husband/elasticvis

ElasticSearch for VisBuilder CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

matchish elastic-vis

12/12 2016

0.0.3

0.0.3.0 https://github.com/husband/elasticvis

ElasticSearch for VisBuilder CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

matchish elastic-vis

25/11 2016

0.0.2

0.0.2.0 https://github.com/husband/elasticvis

ElasticSearch for VisBuilder CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

matchish elastic-vis

25/11 2016

0.0.1

0.0.1.0 https://github.com/husband/elasticvis

ElasticSearch for VisBuilder CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

matchish elastic-vis