Giter Club home page Giter Club logo

elasticsearch's People

Contributors

jankawulok avatar sarjon avatar touxten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elasticsearch's Issues

Is this working with PS 1.7

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!

Search CMS Pages

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"

Allowed memory size exhausted

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"

  • HTTP 500

I tried:

  • Reducing bulk request size.
  • Increased the refresh interval.
  • Set shards and replicas to 1.

Replaced some information with XXX for privacy protection.

Thank you for your time and work!

run Reindex

how much must run this tasks? Reindex all products,Reindex missing products,Reindex prices
Once after install, or after each new product?

Wrong namespace

Looks file Invertus\Brad\Service\Elasticsearch\Builder\FilterQueryBuilder has wrong namespaces on line 34-36
Maybe need check another namespaces too

FindChildCategories not finding sub categories of the current one

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.

Indexing fails silently with switching to Elasticsearch 5 library

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.

Class 'AbstractAdminBradModuleController' not found

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

Need "total number of fields in mapping" setting

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.

Failed to index products

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.