invertus / elasticsearch Goto Github PK
View Code? Open in Web Editor NEWElasticsearch® module for PrestaShop that makes search and filter significantly faster.
Elasticsearch® module for PrestaShop that makes search and filter significantly faster.
Hi. Could you tell me if Brad works for prestashop 1.7.x or are there any plans to make a compatible version of Brad? 1.6 will be EOL this autumn. Thank you!
Hello, when i'm trying to install prestashop upload the module but not show after the upload the install button. How do to?
Hi! How to make it work on XAMP localhost?
One of the biggest problems with prestashop-search is that its not possible to search CMS Pages.
Would that be a possible enhancement for Brad?
I see people often search for invoice or shipping options in the "product search"
I use multishop.
When i indexing all product or missing product a PrestashopCollection is call and the language of last id_shop is take.
https://github.com/Invertus/brad/blob/v2/src/Service/Indexer.php#L172
I fix this with :
$products->sqlWhere('a1.id_shop = '.$idShop);
But i don't know if it's the best way.
Sorry for my English
The environment
PrestaShop-Version 1.6.1.15
Elasticsearch version: 5.6.2
Products: 1864
PHP-Version 7.1.3
php_memory_limit: 512M
max_execution_time: 20000
This happens, while trying to reindex (both all and missing):
[error] FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/clients/client1/web2/web/classes/db/DbPDO.php on line 154 PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77824 bytes) in /usr/lib/tideways/Tideways.php on line 354" while reading response header from upstream, client: XXX, server: XXX, request: "POST /adminXXX/index.php?controller=AdminBradSetting&token=XXX HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web2.sock:", host: "XXX", referrer: "https://XXX/adminXXX/index.php?controller=AdminBradSetting&token=XXX"
I tried:
Replaced some information with XXX for privacy protection.
Thank you for your time and work!
While installing module on PrestaShop 1.7.0.6 I get error: "Server responded with 0 code."
Hi guys,
Hope you are all well !
It would be awesome to get this module opertional on the latest version of Prestashop. Why ?
I would fork your awesome repo and try to implement https://github.com/appbaseio/reactivesearch
Prestashop is really missing some smart faceted search engine. :-(
Thanks in advance for you insights and inputs on this question.
Cheers,
X
how much must run this tasks? Reindex all products,Reindex missing products,Reindex prices
Once after install, or after each new product?
Looks file Invertus\Brad\Service\Elasticsearch\Builder\FilterQueryBuilder
has wrong namespaces on line 34-36
Maybe need check another namespaces too
Hi,
In function CategoryRepository#findChildCategoriesNamesAndIds, to find nested categories the SQL query include that condition :
AND c.
id_parent > '.(int)$category->id.'
Which is wrong, because a subcategory dosn't significate the category ID is greater.
I strongly suggest you use the native function :
Category::getNestedCategories
This will returns the right ones.
Distributor ID: Debian
Release: 8.6
PHP version: 5.6.27-0+deb8u1
php5-json version: 1.3.6-1
EDIT: The issue of missing constants was resolved in php5-json version 1.3.7, the docs also contain the php version requirement
Followed the instructions about switching to Elasticsearch 5 library, module was installed, but index creation ignored shard and replica parameters, and reindexing products failed also with notable reason.
error_log contained:
PHP message: PHP Warning: json_encode() expects parameter 2 to be long, string given in MANGLED_PATH/modules/brad/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/SmartSerializer.php on line 30
The mentioned line 30 contained:
$data = json_encode($data, JSON_PRESERVE_ZERO_FRACTION);
A quick search pointed to a change in Elasticsearch 5 library described in Pull Request 481
Based on the error message, i assumed that JSON_PRESERVE_ZERO_FRACTION was not a reserved constant, and replacing it with the numeric value referred in the comment of the PHP manual about JSON Predefined Constants resolved the issues.
These constants should be already predefined since PHP 5.6.6, but according to a thread on the Debian forums it was not the case with PHP 5.6.13 either, also there seems no bugreports about this.
I agree that fixing of this issue should be done by upstream, but if any user is facing this issue, my report can help, to work around it.
Hi
I've tried both v2 and v2-dev branches
and the module install throw each time :
"NOTICE: PHP message: PHP Fatal error: Class 'AbstractAdminBradModuleController' not found in /var/www/html/modules/brad/controllers/admin/AdminBradSettingController.php on line 27"
Could you explain what am i doing wrong ?
Thx for help
Getting error:
[2017-12-08T15:05:31,879][DEBUG][o.e.a.a.i.m.p.TransportPutMappingAction] [JXcGHXq] failed to put mappings on indices [[[brzxb2zb_1/oXaMGoKERyCOpulhJGTC6g]]], type [products]
java.lang.IllegalArgumentException: Limit of total fields [1000] in index [brzxb2zb_1] has been exceeded
Further searching on this error led me to:
elastic/elasticsearch#17357
I just tried adding this setting to the buildIndex function in src/Service/Elasticsearch/Builder/IndexBuilder.php and in my situation I can set this value to 2000 and it fixes this error.
However I think a proper resolution would be to add an adjustable default sane value in the backend.
Hi
I use brad with elastic 6, elastic is runnig
I fixed composer.json to "elasticsearch/elasticsearch": "~6.0"
, run update, zip and install module
Then I run in colsole php /home/.../modules/brad/brad.cron.php index_products 1 all
And I get error Failed to index products
Any suggest? I'm new with elastic
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.