elasticsearch?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
BonoboMagno
Posts: 11
Joined: 30 Jun 2017, 13:22

Re: elasticsearch?

Post by BonoboMagno » 06 Jul 2017, 11:26

Code: Select all

You can create a decorator like this one to push the product related data into ElasticSeach:
https://github.com/aimeos/ai-admin-jqadm/blob/master/admin/jqadm/src/Admin/JQAdm/Common/Decorator/Cache.php
pushing data is fine. make aimeos read from elastic instead of db is not :lol:

Code: Select all

Can you please explain in more detail?
Let's say i want to make a unit test that create a product, and one that can search it.

In ORM i can use something like:

Code: Select all

use Products;
use Fakedb; //or something like that
/*** ***/
$product= new Product;
$product->name=$name;
/** etc **/
$product->save();
Or i can use builder pathern for something like

Code: Select all

$product= new Product(array($name,$quantity,$category$,etc));
$product->save();
Or i can use factory like this:

Code: Select all

$productMadeByFactory = Factory::newproduct($arrayAttribute);

How i can do this on aimeos?
How i can finde a product in ameos?

Which are the standard object that automagically enquiry the db?! :)

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: elasticsearch?

Post by aimeos » 06 Jul 2017, 16:00

BonoboMagno wrote: Let's say i want to make a unit test that create a product, and one that can search it.

How i can do this on aimeos?
How i can finde a product in ameos?
Please have a look into this article:
https://aimeos.org/docs/Developers/Libr ... ging_items

Here you have examples from the product manager unit tests in Aimeos:
https://github.com/aimeos/aimeos-core/b ... rdTest.php

If you want to use that in a Laravel controller or command:
https://aimeos.org/docs/Laravel/Extend_Aimeos
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

tenkraD
Advanced
Posts: 110
Joined: 25 Jul 2017, 08:38

Re: elasticsearch?

Post by tenkraD » 06 Dec 2018, 08:23

Hi BonoboMagno, did you get it work to implement search with elastic search?
Could you post youre result here?

Thank you very much.

nos3
Posts: 86
Joined: 01 Sep 2015, 13:26

Re: elasticsearch?

Post by nos3 » 07 Dec 2018, 12:33

The Aimeos company now has an ElasticSearch integration into Aimeos for products and stock levels in the #gigacommerce. You can scale your shop to 1 billion articles and beyond and it also has fuzzy search implemented: https://aimeos.com/extensions/#c1673

User avatar
OliverRussell
Posts: 2
Joined: 24 Jul 2019, 07:49

Re: elasticsearch?

Post by OliverRussell » 24 Jul 2019, 08:45

You can integrate Elasticsearch in Aimeos using Laravel Scout if you want. For this you have to install Laravel Scout, Elasticsearch package for PHP and Elasticsearch Eloquent package. Add the Elasticsearch settings in Scout.php file. This will configure the Elasticsearch autocomplete search and Scout, but you need to create a model to support full text search.

Post Reply