Ecwid has a powerful built-in search engine that provides quick and relevant search among a huge amount of products.
In this article:
For performing the search Ecwid uses a special stand-alone search server (SOLR) that constantly indexes all Ecwid stores and always keeps the product information accurate. So when you add a new product to your store, it immediately becomes available for search in all of your storefronts. Ecwid searches products over multiple fields:
- product name
- product description
- product SKU
- product options
- category name
Ecwid provides a customer with the most relevant search results and it does it quickly.
In most cases, search by a word or by a phrase is enough to find a desired product in the catalog: that's how people usually search something in the web. Ecwid search tool allows make search more specific or more wide.
Double quotes for searching by exact phrases
In the storefront, Ecwid searches products by individual words in a search phrase. When you want to search for an exact phrase, you should enclose the entire phrase in quotation marks. This tells Ecwid to search for the precise term.
Wildcard '*' for substring search.
Ecwid supports searches such as 'book*', where wildcard means 0 or more characters. The query 'book*' will find products containing terms such as book, bookstore, booklet, etc.
AND, OR, NOT for combining words in logic structures.
If your search query contains two or more words and you want to find products that have all of those words mentioned in their info, you can join those words by 'AND'. Examples:
- ipod AND shuffle
- ipod AND headphones AND sennheiser
If you want to find products that have either of the query's terms mentioned in their info, you should join your words with 'OR'. Examples:
- shuffle OR nano
- shuffle OR nano OR touch
If you want to exclude products, that contain some word, from search results, you should place 'NOT' before that word in a search query. Examples:
- ipod NOT shuffle
- ipod NOT shuffle NOT nano
Note: you can combine together the abovementioned tricks to get more efficient searches. Examples:
- "ipod shuffle" AND charger (will find products where the phrase 'ipod shuffle' and the word 'charger' are mentioned → will find a charger for iPod Shuffle)
- ipod NOT ear* (will find products where the word 'ipod' is mentioned but words like 'ear', 'in-ear', 'earphones' are not → will find all iPod-related products but exclude any earphones from the search results).
Ecwid provides several approaches on broadening the search functionality.
You can use one of the Ecwid apps for adding advanced search to your store. Please refer to this page for details: How to add advanced search/filters to your store
Alternatively you can use our Product Filters API to tune up the search in your store according to your needs. Please refer to this article for details: Product Filters API
Why search results in my control panel differ from ones in the storefront?
The Search products tool in the Ecwid control panel works in a similar way to the search widget in the storefront. However, when using them, you may get different search results due to the following reasons:
- If you have disabled products in your store, they will not be listed in the storefront, but you certainly can get them in the back-end search.
- If the Hide out of stock products option is enabled in your Ecwid Control Panel → Settings → General → Cart & Checkout → Catalog settings), the out of stock products won't appear in the storefront.
- The Search products tool in the control panel looks for a product by an exact phrase. On the storefront's the search widget checks each word separately.
Why the newly added products are not immediately available in the search results?
Since Ecwid uses the special stand-alone search server, that server needs to index the data of the newly added products to be able to search on that data and show those products in search results. All the changes in the products data from all Ecwid stores are indexed in one queue. Hence, there may be some delay between the moment when you add new products or make changes to the existing ones and the moment when you can see those changes reflected in the search results.
The process of indexing is fully automated – as soon as you save the changes in your store, all those changes are queued for indexing, and as soon as the search server processes the queue, it will index the new data and make it available for searching.
So, if you just imported many products or made other massive changes to your inventory and expect it to appear in the results of the product search in your store - just wait for a few minutes. After some time your changes to the products will be automatically indexed and become available in search.
If, however, you find that your changes to the products are not reflected in the product search for a long time (several hours to days) please let us know.Back to top