Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
pessoal2004

Elasticsearch Cli raw installation

Question

Posted (edited)

Any help to complete this elasticsearch cli raw installation will be aprreciate.


A - ELASTICSEARCH SERVER
$ yum install java-1.8.0-openjdk -y
$ curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.rpm
$ rpm -i elasticsearch-5.4.0.rpm
$ vim /etc/elasticsearch/elasticsearch.yml
  network.host: 0.0.0.0
$ systemctl daemon-reload
$ systemctl enable elasticsearch.service
$ systemctl start elasticsearch.service
$ curl localhost:9200


***

B - TB SERVER
- Apache/2.4.6
- PHP 7.1.26
- Download and install the TB-elasticsearch module at https://store.thirtybees.com/shop-modules/front-office/elastic-search-module
- But the module is not up to date so you need make the changes describe at https://github.com/thirtybees/elasticsearch/compare/1.0.0...master in the followings files:
          - elasticsearch.php 
          - views/templates/hook/vue/main-search.html.tpl
          - views/templates/hook/vue/results.html.tpl
          - views/templates/themes/panda/hook/vue/main-search.html.tpl
          - views/templates/themes/transformer/hook/vue/main-search.html.tpl
          - views/templates/themes/warehouse/hook/vue/main-search.html.tpl
          - views/templates/themes/warehouse/hook/vue/results.html.tpl

- To solve "Amount of items indexed" not counting up inserted the following code after line #377 
          if ($product->active ==='1') 
          {  $product->active = true; }
          else
          {  $product->active = false;}

- If you want use php 7.2 you need made change at modules/elasticsearch/elasticsearch.php:
1191 # $xscheme = '([a-zA-Z][a-zA-Z\d+-.]*)';
       $xscheme = '([a-zA-Z][a-zA-Z\d+\-.]*)';
1199 # $xhostName = '([a-zA-Z\d-.%]+)';
       $xhostName = '([a-zA-Z\d\-.%]+)';

***

C - TB BACKOFFICE
BO / Modules and Services / Positions /displayTop / Top
BO / Modules and Services / Modules List / Block Layered Navigation / Configure / Disable
BO / Modules and Services / Modules List / Block Search / Configure / Disable
 
***

Any help to complete this elasticsearch cli raw installation will be aprreciate.

Edited by pessoal2004

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

You can find that issues mentioned on github.

There's a couple of notes on elasticsearch:

1. In the 6.x branch of ES there is a weird limitation for some fieldtypes, that why dome products cannot be indexed. I opened issue on github about that, but still no answer.

2. It is obviuos, that native TB's (or Prestashop's) search engine can fulfil 90% of customer needs (if not 99) and ES required for shops with huge SKU amounts, that's why there's no much progress in this module development.

You can find that issues mentioned on github.

There's a couple of notes on elasticsearch:

1. In the 6.x branch of ES there'a a weird limitation about some fieldtypes, that why some products cannot be indexed. I opened issue on github about that, but still no answer.

2. It is obviuos, that native TB's (or Prestashop's) search engine can fulfil 90% of customer needs (if not 99) while ES required mostly for shops with huge SKU amounts, that's why there's no much progress in this module development.

Edited by DaoKakao

Share this post


Link to post
Share on other sites
  • 0

Hi DaoKakao, thank you for your help. 

I can’t put elasticsearch 6.X working but with 5.4.0 it’s almost works.

My first problem if I installed correctly the elasticsearch?

Can you check if the how to elasticsearch cli raw installation that I put in the first post is ok, or I missed some steps?
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×