Jump to content

Elasticsearch on CubeCart 6.5.0 Beta 1


Tony

Recommended Posts

With the announcement of CubeCart 6.5.0 Beta 1, I would like to give it a go, especially the Elasticsearch offering. But my current hosting is not 'powerful' enough to run this so I was wondering if this Cubercart version will allow to run the Elasticsearch service from externally? If yes, yay!

Also does it support this ? 

https://aws.amazon.com/opensearch-service/

Thanks.

Link to comment
Share on other sites

Hi Tony,

Beta 2 will be available early next week worth waiting.

Can't see any reason why it won't work with Opensearch.

It should just be a matter of adding a line to you includes/global.inc.php file. Set the domain and port. I don't know if authentication is needed but this isn't something that is supported yet. Please let me know.

$glob['elasticsearch_hosts'] = array('localhost:9200');

 

Link to comment
Share on other sites

@Tony it isn’t really anything to do with your hosting being “powerful enough” but ES can only be installed at a server level and I would guess no hosting company (other than Al and myself as we will both have this available on our platforms) will ever have this installed on a shared hosting plan and would therefore need a dedicated server / VPS.  Using an external service is interesting but would 100% need authentication from a security point of view and does add additional expense and more importantly an additional layer of complexity via a third party

Ian

Link to comment
Share on other sites

Hi Ian,

Thanks for your insight, but you don't know my hosting setup. 😉

I do have the ability of installing ES (confirmed with them), just that I don't have a beefier server to perform for huge traffic. I'm wondering if it's doable as my visitor numbers are very low (I'd say 1k users a week or so) so the amount of time they use the search box will be lower. All I need to do is to tweak to see if it can work, or like mentioned earlier, I use external cloud provider to offset the load.

Would be a good way for me to test & feedback.

Link to comment
Share on other sites

Just now, Tony said:

Hi Ian,

Thanks for your insight, but you don't know my hosting setup. 😉

I do have the ability of installing ES (confirmed with them), just that I don't have a beefier server to perform for huge traffic. I'm wondering if it's doable as my visitor numbers are very low (I'd say 1k users a week or so) so the amount of time they use the search box will be lower. All I need to do is to tweak to see if it can work, or like mentioned earlier, I use external cloud provider to offset the load.

Would be a good way for me to test & feedback.

Looking forward to hearing how you get on.

Link to comment
Share on other sites

Have set it up, currently running locally (as I can't find a way to use AWS, will investigate later) but I am not 100% sure if it works?

In your other post, you say:

  1. Once installed it can be enabled via the Advanced section of your Store Settings
  2. Finally, you'll need to index your current inventory. To do this visit the Elasticsearch tab in the Maintenance section of your store control panel. Once indexed it should maintain itself.

Both does not exists. can you confirm this? I upgraded from 6.4.4 to 6.5.0-b2 on my test server and I edited the global.inc.php file to add the line. But for your steps above does not exists at all so I am unsure if it's running?

Thanks,

image.thumb.png.9af89341db7717464d0c4483221511dc.png

image.thumb.png.ad75de6352f7225b8d18cf996ae24f94.png

 

 

Link to comment
Share on other sites

If you uploaded and allowed the upload to overwrite, perhaps it is the case that the new package has the admin folder and file still named "admin", whereas your properly installed package has had its admin folder and file renamed to the randomized hash suffix syntax.

If so, you will need to rename the new package's admin folder and file to be what the existing folder and file is (after deleting or renaming the older admin folder and file).

 

Link to comment
Share on other sites

1 minute ago, bsmither said:

If you uploaded and allowed the upload to overwrite, perhaps it is the case that the new package has the admin folder and file still named "admin", whereas your properly installed package has had its admin folder and file renamed to the randomized hash suffix syntax.

If so, you will need to rename the new package's admin folder and file to be what the existing folder and file is (after deleting or renaming the older admin folder and file).

 

That makes a lot of sense.

Link to comment
Share on other sites

@bsmither can we have a fistbump? That was it, thank you! Totally forgotten about that, doh!

Anyway, enabled it, rebuilt the ES cache and tested the search.

Observation:

1) It didn't find/lists the products as I typed

2) I pressed the Enter button once I typed in the word within the search box and on the next page, it gave me a blank page

I will investigate more.

Link to comment
Share on other sites

I've given up with the ES install on my hosting account, some stumbling blocks somewhere, so trying the free AWS account for Opensearch, however I was able to choose the Elasticsearch v7.1 as the option to set up.

But it uses https:// rather than ip/hostname - how will that work with the Array string in the config file?

Seeing it's free to set up if you set it up for t2.small.search - perhaps you can test this yourself too?

Happy to work together with you on this if you like, @Al Brookbanks.

Link to comment
Share on other sites

11 hours ago, Al Brookbanks said:

What the problem with local install?

Mainly this

AH01215: PHP Fatal error:  Uncaught Elasticsearch\\Common\\Exceptions\\NoNodesAvailableException: No alive nodes found in your cluster in /home/xxxxx/apps/xxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php:64, referer: https://xxxxx.co.uk/
 

AH01215: #0 /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(82): Elasticsearch\\ConnectionPool\\StaticNoPingConnectionPool->nextConnection(), referer: https://xxxxxx.co.uk/

AH01215: #1 /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(99): Elasticsearch\\Transport->getConnection(), referer: https://xxxxxx.co.uk/

AH01215: #2 /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(297): Elasticsearch\\Transport->performRequest(), referer: https://xxxxxx.co.uk/ 

AH01215:#3 /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/react/promise/src/FulfilledPromise.php(28): Elasticsearch\\Connections\\Connection->Elasticsearch\\Connections\\{closure}(), referer: https://xxxxxx.co.uk/

AH01215: #4 /home/xxxxxx/apps/xxxxxx/classes/ela in /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php on line 64, referer: https://xxxxxx.co.uk/

 

I was able to verify that the Nodes are up and running when I queried it in SSH.

Link to comment
Share on other sites

5 hours ago, sack123 said:

image.png.51809d778921d9a4c0ff13538a3d7628.png

After option 3. It show below screen. It stay 100% like that and refreshing again ask for rebuilt.

Cubecart store page search option No result searching. Any idead whats wrongs ?

 

image.thumb.png.8ec0e3cc8cef5147248e7dc7905c471b.png

 

After Rebuilt

This looks like Beta 1? Can you try the Beta 2. If you want to send access to [email protected] I'll be happy to take a look for you. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...