Back to Top

Prestashop Elastic Search

Updated 20 April 2024

Elastic search is a type of search engine which gives fast search response because in elastic search it searches an index instead of text directly, just like in a book we retrieve the pages by using its index. Elastic search is actually a highly scalable open-source full-text search and analytics engine.  It allows you to store, search, and quickly analyze the big volumes of data in near real time.

Prestashop Elastic Search

Now the search is easy for the Buyers. With the help of the Prestashop Elastic Search module, Buyers can get fast product search response as it searches the product by its index instead of text. This module allows buyers to search a large number of products in very less response time.

NOTE:

  1. Prestashop Elastic Search module is compatible with PrestaShop version 8.x.x.
  2. Prestashop Elastic Search module version 5.2.1 is compatible with elastic 7.x and 8.x. If you are using elastic 6.x, then please contact us.

Features

  • Product search will be easier and faster for the buyers.
  • Admin can upload their store data on the Elastic server.
  • An admin can delete/remove their data from the Elastic server.
  • Admin can add multiple elastic servers.
  • The admin can also allow the store data to auto-update on the elastic server when the data will update on Prestashop.
  • Buyers can search the products by writing its incorrect name.
  • Buyers can search the products by writing the incomplete name of the product.
  • View data of all the indexed items on the dashboard.
  • Choose to show image of the product along with its name in the search results.

Note: This module is multishop compatible.

Installation

  1. Go to the back  office-> modules -> Upload a module
  2. Upload zip file of “Prestashop Elastic Search” module
  3. The module will automatically get installed on your Prestashop.
Click to install the module
Drop the file of the module
Module installed

Important Note

Before Configuring the module admin will have to disable the default search bar module otherwise it will show two search bar in front-end.

Searching for an experienced
Prestashop Company ?
Find out More
Disable the default search bar

Configuration

After installing the module admin needs to configure the module.

Before configuring the module admin has to install elastic search on their server with the help of the following link- https://www.elastic.co/guide/en/elastic-stack/current/installing-elastic-stack.html.

In the configuration settings, a new section dashboard is added. The dashboard will display the data of indexed items in the pie chart. The dashboard contains data of indexed items for the following four sections.

  • Product
  • Category
  • Brand
  • CMS
dashboard

After installing the elastic search admin has to configure the following settings:

Connection Settings

Configure connection settings

Severity of Log: Admin can set the log levels from the following-

  • INFO(200)
  • DEBUG(100)
  • NOTICE(250)
  • WARNING(300)
  • ERROR(400)
  • CRITICAL(500)
  • ALERT(550)
  • EMERGENCY(600)

For the better understanding of the above log levels please refer the given link- https://github.com/Seldaek/monolog/blob/master/doc/01-usage.md#log-levels

Index

Select Search filter: Admin can select following types of search filters-

  • Elision Filter
  • Lowercase Filter
  • Synonym Filter
  • Stop Word Filter

For more information about the filters please go through the below link-

https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenfilters.html

Configure index settings

Documents

Admin can apply the search on the followings-

  • Product
  • Category
  • Brand(Manufacture)
  • CMS Page
Build index of products

Search Setting

Configure search settings

In the Search Settings, The Admin can select Multiple Field or Single Name Field as a  search type for Frontend as shown below:

Select search type

1. In Multiple Field

If the search type is selected as Multiple Field the customer can search the product by the attributes which have been created by the admin and the attribute type must be text. In this query, customers can also search the product by the words that belong to the description of a product.

Select Multiple Field Match Type

The Admin can select Multiple Field Match Type as Best Fields, Most Fields, Cross Fields and Phrase and Phrase Prefix. 

To learn more about Multiple Field Match Query, please go through the following link:

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html

Select Operator For Multi Search-  The Admin can select “AND” or “OR” operator for Multi-Search.

Allow Spell Correction in search-

The Admin can also set the spell correction at Auto, Level 1 or Level 2, according to which the Elastic Search Engine automatically shows the keywords even if the customer doesn’t write the complete word or write the incorrect word in the search tab.

Auto Search
search field

If admin disables the search then the customer will have to write the complete word related to the search product given below:

search the product by writing the complete word

2. In Single Name Field

If the search type is set to “Single Name Field” then the by default customer can search the product by its “name” field.

search the product by name

In “Simple Search Query” typed word must be in the “name” field of the search product.

Display

3-9
placeholder text for search box
4-5

Auto Index(CRON)

set cron settings
  • Admin can set a cron job to rebuild the index in a specific interval.
  • Admin can add URLs in the “Cron task Manager” module

Note: We are continuously working on improving the search in this module with the help of elastic search.

Support

For any kind of technical assistance or query, please raise a ticket or send us a mail at [email protected]

Also, please explore our Prestashop development services and vast range of quality Prestashop addons.

Current Product Version - 5.2.1

Supported Framework Version - 8.x.x,1.7.x.x.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content