Page 2 of 2

Re: elasticsearch?

Posted: 06 Jul 2017, 11:26
by BonoboMagno

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?! :)

Re: elasticsearch?

Posted: 06 Jul 2017, 16:00
by aimeos
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

Re: elasticsearch?

Posted: 06 Dec 2018, 08:23
by tenkraD
Hi BonoboMagno, did you get it work to implement search with elastic search?
Could you post youre result here?

Thank you very much.

Re: elasticsearch?

Posted: 07 Dec 2018, 12:33
by nos3
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

Re: elasticsearch?

Posted: 24 Jul 2019, 08:45
by OliverRussell
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.