elasticsearch?
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 11
- Joined: 30 Jun 2017, 13:22
Re: elasticsearch?
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

Code: Select all
Can you please explain in more detail?
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();
Code: Select all
$product= new Product(array($name,$quantity,$category$,etc));
$product->save();
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?
Please have a look into this article: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?
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,
give us a star
If you like Aimeos,

Re: elasticsearch?
Hi BonoboMagno, did you get it work to implement search with elastic search?
Could you post youre result here?
Thank you very much.
Could you post youre result here?
Thank you very much.
Re: elasticsearch?
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
- OliverRussell
- Posts: 2
- Joined: 24 Jul 2019, 07:49
Re: elasticsearch?
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.