Questions tagged [catalogsearch]

Denotes questions related to the Magento catalog search engine

Filter by
Sorted by
Tagged with
4 votes
1 answer
6k views

Magento 1.9.3: every product is displayed in the search in full text mode

When searching for a product in 1.9.3, every product comes up in the list in fulltext mode. How do I fix that issue ?
14 votes
1 answer
5k views

Catalog Search: If only one result, show product view page insted of list view

My goal is to achieve the following modification in the Magento catalog search. When I search for a product and only one product is returned in the result collection, I want to display to product ...
  • 183
3 votes
3 answers
4k views

Magento2 enabling elasticsearch empties all categories

I installed elasticsearch and the Magento backend connection test to elasticsearch is successful. If I save settings, clear the cache and reindex as described in the Magento devdocs, all product ...
2 votes
3 answers
7k views

Magento 2 Elastic search 6 Fulltext search with like

I am trying to customize the default Magento 2 Elasticsearch 6. Right now the default Fulltext search is not giving that good result. For Example I have product name like ADB12355 BBB, ADB3456 AAA, ...
  • 1,695
23 votes
8 answers
1k views

Providing Site Wide Search for Community Edition

Over the years there's been numerous attempts at improving the Magento's search features. (Solr, Lucene, etc.) In 2013, is there a preferred/dominant way of providing a catalog search in Magento ...
10 votes
12 answers
23k views

Search does not return results

As i described in the title i don't get any results when i search for a product. I have tried so far: Checking the visibility of the products My products are in stock I have also set the qty to 100 ...
4 votes
2 answers
1k views

Manually specifying top search results for a specific search query

I'm looking for a way to manually force certain search results for certain search queries. For example, if the customer searches for "T-Shirt", I'd like to be able to manually select 4-5 products ...
  • 1,073
3 votes
1 answer
2k views

On Search Result: Group Products by Category

I need the search result page to list products grouped by category name. Example: When searching for nike the result should be viewed like this: Category "Shoes": - some nike shoe - another nike ...
  • 630
0 votes
3 answers
4k views

You cannot define a correlation name 'enable_googlecheckout_idx' more than once

my working site got down last day. I found this problem in reports. I believe there must be a quick fix of this issue. I would highly appreciate any kind of help, clue, hint to fix this issue. Thanks....
7 votes
4 answers
4k views

How do I change Magento 2 search from OR logic to AND?

How do I change Magento 2 mini search logic from OR to AND? Right now if I search for 'Shoe laces', it returns all products with terms either 'shoe' or 'laces'. I need a Fulltext search so that only ...
  • 191
5 votes
2 answers
1k views

Mangento 2 search result page sidbar missing

It seems like am missing the sidebar in my search result page, for more deatil refer to the image below. How do I add the same sidebar that, I have on the category page? I have tried adding widgets ...
4 votes
2 answers
6k views

Include category in search result

When we search any text in default magento it shows only products in the search result but I want to show the categories also when someone searches for a query string. Like if query string is like ...
4 votes
1 answer
997 views

Is it possible to display OOS products in last even product sort by name/price etc

We have to display all In stock products in starting position even if we sort by name or any other criteria, we have to display out of stock product in last position. How can we do this in all type ...
3 votes
5 answers
5k views

Magento 2 Change Default OrderBy Parameter for Search Results

How can I change the default order by value and direction for search results listing page? The default is set to Relevance but I want to change this permanently to something else i.e. Price for ...
  • 5,646
3 votes
4 answers
5k views

Add category path to breadcrumbs on product view page

By Default Manual Navigation Products breadcrumb looks like, Wanted product detail page: When I reached to product page using by search the breadcrumb looks like, Current product detail page: ...
user avatar
2 votes
1 answer
5k views

Magento2; Advanced Searching (SmartSearch)

I'm trying to create a "SmartSearch" extension for Magento 2.0, but I really can't find out what the next step should be. What I have so far: Working 2.0 Extension (registration.php, module is ...
  • 1,327
2 votes
3 answers
4k views

Magento + ElasticSearch not showing search results

Before I enabled ElasticSearch the search bar would give me a list of categories, products, and blog posts that matched. And when I hit enter the search results page would contain the matching ...
2 votes
1 answer
2k views

When i enable solr,the magento layered navigation not working

The issue is when i enabled solr (i successfully configured solr and tested successfully) in magento enterprise,the layered navigation filter is not working properly. i.e displaying all category ...
1 vote
1 answer
352 views

How to get similar kind of sku in catalog search result?

I have to create new feature such as did you mean, which is shown in google search engine. I have multiple similar product sku like G HT2, G HT3 and G HT4. And When I am going to search product with ...
1 vote
1 answer
1k views

Magento 2 EE elastic search module not enabled

I am running Magento 2.1.2 Enterprise Edition instance. I have installed and enabled elastic search on the same. When I click on TEST CONNECTION button it says Successful! Test Again? However the ...
  • 2,051
0 votes
3 answers
1k views

Magento 2: How to route the page to catalogsearch/advanced/result/ page with abc/xyz.html Url

I created an observer to catch the event when a new url is requested with <event name="controller_front_send_response_before"> <observer name="brands_index_events_observer" instance="...
0 votes
1 answer
1k views

Category search logic (AND instead of OR)

The default search functionality in Magento doesn't seem to offer the 'AND' operator when searching by multiple categories. Hence drilling down a search result by one category and then another doesn't ...
8 votes
4 answers
4k views

Always show full URL including categories for product

For our Magento webshop (1.7.0.2), we're trying to optimize the URL structure. We've already managed to improve some things, but in one things we didn't succeed. We want to use a full URL (including ...
  • 1,396
8 votes
1 answer
35k views

Magento Search Not Working

I have a new website that is running Magento 1.7.0.2. When you search in the search bar for say "totem" nothing pulls up, instead it says no results can be found. I know there are results, but if ...
8 votes
1 answer
5k views

Magento Quick Search to look into custom attributes with conditions?

I have a requirement where if any integer is there in Magento quick search string, then do a search looking for product SKU and custom attributes. But if there are no integers in the search string, ...
  • 1,823
7 votes
5 answers
20k views

Catalog Search indexer process unknown error: There is no such engine: mysql2

I'm using magento 2.1.3 and I'm getting the following error when I try to run the php bin/magento indexer:reindex command Catalog Search indexer process unknown error: There is no such engine: ...
7 votes
2 answers
9k views

Magento 2: what is the search_request.xml file used for?

Under app/code/Magento/CatalogSearch/etc/ there's a search_request.xml file with the following content: <requests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
5 votes
1 answer
608 views

How to control search result ordering

Lets say someone searches for "item a" , and 20 items show up, is there a way to control which item shows up first and which item shows up second and so on?
5 votes
3 answers
7k views

Modify catalogsearch module to search by attribute values

I have attempted for quite a number of hours to solve this but I can't find the solution. I want to allow users to search by certain attribute values, for example ingredients, brand OR product name. ...
  • 151
5 votes
1 answer
3k views

How can I add meta noindex to all catalog search result pages in Magento2?

As the title states: How can I add meta noindex to all catalog search result pages in Magento2? I am hoping for an XML Layout solution.
  • 1,489
4 votes
2 answers
1k views

Magento 2 - Plugin issue in catalogsearch

I've created a plugin to override getProductPrice() method of Magento\Catalog\Block\Product\ListProduct class. This is my app/code/vendorName/moduleName/etc/di.xml: <?xml version="1.0"?> <...
  • 1,521
4 votes
2 answers
7k views

Adding new page to Front end

UPDATED I am trying to add new page on front end. I am doing as following. I have a form, where I am using my action to load the view. On button click it never goes to controller, please help me, ...
3 votes
1 answer
3k views

Search category names in basic search and return matching products

I am associating my products with categories in Magento, and I'd like to modify the basic search so that products from category names that match the search query are included in the results. Is there ...
3 votes
1 answer
2k views

Why is re-indexing often required for search to work?

Regularly on our site Magento's search feature stops working and when a user tries to search for a product nothing comes up in the search. Once we re-index Product Flat Data, Category Flat Data, ...
  • 4,743
3 votes
1 answer
201 views

Sort order by category id (or custom order)

i'm struggling on that simple point. How can I order my catalog search by categories ? i want to order my catalog search result like this : Categorie 1 / Category 2 / Category 3 I tried changing ...
3 votes
1 answer
10k views

How to get Search result Product collection outside result.phtml

I need to get current product collection (actually I just need all Product IDS of products in current search result) of search result page in outside result.phtml, because I'm going to do something on ...
3 votes
2 answers
5k views

How to search product programatically in magento 2?

I want to search product in custom page so how search products programmatically in custom controller ? Below Magento 1.x search programmatically $queryText = Mage::helper('catalogSearch')->...
2 votes
2 answers
742 views

Catalog Search Sorting Broken With Umlauts / Special Characters

There is a catalog search Magento bug in 1.9.3.0 - 1.9.3.4. You can reproduce it like that: Create a product with an umlaut in the name like "über". Search for the umlaut like "ü" in the frontend. ...
  • 5,659
2 votes
1 answer
610 views

I need to override the search term

I need override \vendor\magento\module-catalog-search\Model\Layer\Search\Plugin\CollectionFilter.php File, i need get the search term and replace "-" and "." for nothing. Which a ...
2 votes
1 answer
5k views

Slow queries on catalogsearch_query

I have a site with approx 6500 products. The are constantly running into problems where they run up against the hosting companies PHP Process limit. I have been running a SQL profiler against their ...
2 votes
2 answers
5k views

How to add other pages to search results besides just products

Does anyone have any idea where I would start regarding having CMS pages show up in search results, not just products on the front end? I know you can do a redirect with a keyword, but I don't want to ...
2 votes
1 answer
387 views

stop filter block from moving to state block on selecting any filter option

i am not able to keep the filter on page as i select any one from them. On selecting any filter it moves to the state Block. So, what do i do to keep it from moving to the state block?
2 votes
2 answers
4k views

How to search specific SKU in magento2?

In search bar when i am searching a product using sku (100.40.10), It displays all the product whose sku is having prefix (100.xx.xx) , But i only want it to fetch whose sku is (100.40.10).
2 votes
0 answers
1k views

Magento Catalog Search - option to change like "OR" to like "AND"

I´m currently working on a search extension for Magento. I´m fairly new to the Magento framework, but I have found a serious feature lack in regards to the Catalog Search. In Magento admin you can ...
2 votes
3 answers
2k views

How to get Search Result Count in head.phtml

I am trying to get total number of results count in head.phtml page. I have used following code to get search term. But I am not sure how to get total number of results count here. $term = Mage::...
1 vote
0 answers
188 views

Catalog Search Issue

When I'm seraching product title "Mixer, Ribbon, 25 CF, 304 S/st, 15 HP, New, HD, (2)" on the website, then getting following error:- 2 exception(s): Exception #0 (Zend_Db_Statement_Exception)...
1 vote
2 answers
4k views

Catalog Search Index not changing status "required index"

I ran many time reindex process and system always returning the status "required index". I truncate the table without success.
1 vote
2 answers
2k views

Is there a way to add custom attributes to the Admin side product search?

I am looking to be able to search by a custom attribute's values on the Admin side in Catalog > Product search. By default you can search by a range of product ID's, name, type, attribute set name, ...
1 vote
1 answer
417 views

Search Query with Umlaut (äöü) not working

Search Query with Umlaut (äöü) not working, what can i do?
1 vote
0 answers
48 views

Catalogsearch category filter not listing certain sub-sub categories

We have the following category tree: Default Category | Shop categories | Sub category 1 | Sub category 2 | Sub category 3 | Sale Corner | Another category So it's like ...