We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [catalogsearch]

Denotes questions related to the Magento catalog search engine

Filter by
Sorted by
Tagged with
1
vote
0answers
351 views

Layered Navigation is not working on Searched Result Page in Magento2

I have been assigned on a task in which layered navigation is working perfect on product list page while not working on Searched Result page. Only one filter is working fine but not when we try to ...
1
vote
1answer
510 views

Magento 2.1.x search by relevance does not work

During a Magento 2 Enterprise Cloud Edition build, I have come across, when I search for a any product, the default sort order always gets set to Product Name. I looked around but only one Magento ...
0
votes
3answers
473 views

Change search query to lower case in catalog search results URL

I'd like to change the case of my query String so that the results page contains the lower case version thereof, for example: For a search Delicious Pie, instead of the results page being: ...
2
votes
1answer
3k views

How to remove the sidebar.main block from the search results page

I am trying to remove the sidebar.main block from my search results page as I do not require the layered navigation on this page. I have copied the following XML: \vendor\magento\module-layered-...
1
vote
0answers
2k views

Modify magento 2 full-text catalog search and filters with my own set of products and filters

I have a set of SKUs which I want to display in the search result and the filters should be displayed according to my set of SKUs. For this I have override the Magento\Catalog\Model\Layer\Search ...
3
votes
1answer
326 views

How to Join My Custom table to catalog search in Magento 2

I have my own custom table with FK of product id and my own custom sku when customer search the product it should also be searched from my custom sku of custom table along with default search how ...
0
votes
0answers
107 views

Magento Catalog Search not working properly 1.9.2?

My code is perfect, i have tested on another database, but on current live server database i can't search any result in my portal. can you please help me which issue is occurring in database ? Thanks
2
votes
1answer
931 views

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

How do I change magento 2 minisearch 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 fulltext search, so that only ...
2
votes
2answers
2k views

Magento2: Search programatically like Magento2

I've tried looking for products programmatically that get the same results as magento 2 searches (In the search box). I have used: $result = array(); $filter1 = $this->_filterBuilder->...
1
vote
1answer
1k views

Magento 2 Layered Navigation on Advanced Search Result Page

I am able to enable 'Layered Navigation' on Catalog Search Result-Page "http://127.0.0.1/catalogsearch/result/index/" (see image below) by just enabling the storefront properties 'Use in Search ...
0
votes
1answer
381 views

How to limit Search Result to 1

I am trying to limit the search results returned when doing a product search. The client wants to return only one option at a time. This is because their customers know the skus and dont want to see ...
1
vote
1answer
1k views

Magento2: FullText Search Programatically

Does anyone know how to run a search using FullText and a string? I'm trying to inject use Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection as Fulltext; and do $this->_fulltext->...
0
votes
1answer
35 views

Magento2: Equivalent catalogsearch/layer getFilterableAttributes

What is the equivalent in magento2 of $query = Mage::getModel('catalogsearch/layer'); $filterableAttributes = $query->getFilterableAttributes();
0
votes
0answers
30 views

Magento 2.1.7 - Categories wont work - Appends “cat” tag to end of `URL`

I'm having an issue categorizing past one level. An example would be if I clicked category1 (100 products) --> subcategory2 (50 products) --> subcategory 3 (25 products), it will only ...
1
vote
1answer
121 views

Magento Search Results: Echo SKU list of products in header.phtml or head.phtml

How can I echo the SKU list of the items in the search results page, but in the header of Magento? Currently using M1. I'm using the code below to echo the list of SKUs of a specific category page to ...
2
votes
3answers
1k views

Magento 2 Search Rest API

I need to change the response of Search Rest API in Magento 2. Request:rest/V1/search?searchCriteria[requestName]=quick_search_container &searchCriteria[filterGroups][0][filters][0][field]=...
0
votes
1answer
57 views

Configure catalog search function

Have an issue here and would love to hear an advice. Simple example: I type snake top in the search bar and it shows me all products that contain top and snake in the title or description. I, however, ...
1
vote
2answers
1k views

programatically search products in magento 2

programatically search products in magento 2. Please help me to get products using search criteria.
1
vote
0answers
51 views

Search result page not displaying items defined in different default.xml files for theme

I am working on developing a theme. I overrode the default.xml layout file for theme in my, VENDOR/THEME/Magento_Theme/layout/override/base/default.xml. In this file, I have defined some overrides ...
1
vote
1answer
702 views

Magento 2 catalog search?

Magento 2 how to implement catalog search programmatically. I need categories and product details. Please provide reference links if any. Please find the screenshot :
1
vote
0answers
337 views

Magento-2 How to exclude category products from catalog search results

I need to change catalog search product results collection, exclude some categories from catalog search results. Anyone know how to apply category filters in search results. Thanks
1
vote
1answer
1k views

Magento-2 How to get custom product collection in catalog search result based on particular category

I am working on custom module for catalog access. It requires only logged in customer to access the assigned category products. Right now in catalog search result, product collection displays all the ...
3
votes
1answer
278 views

Page title display different

When searching the products displayed page title is different in magento2. Before login display customer login title and after login shown correct title.Please help me any one.
3
votes
0answers
612 views

Magento Catalog search returns blank page

I am having a strange issue. I am working on developing a theme based on out of the box Luma theme for a Magento 2 site. For the default page in theme, I am overriding it to use 3-column layout. ...
0
votes
1answer
57 views

How to Improve Magento Search

I would like to know if there is an option in the backend where I write the name of a product in the search and it shows me in mini images the products with that name before I search, or would it have ...
1
vote
0answers
254 views

Magento 2 Search In Category level

In magento 2.1 default search option is there, but i need to show all category names left side of search button (drop down menu) , if i select one category and select anything with some text, it will ...
1
vote
1answer
719 views

Filter product search by category

I'm trying to filter my product search by returning only products within the current category I'm in, I can't find where the product collection is created within the search module Can anyone help ...
2
votes
1answer
392 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. ...
0
votes
1answer
173 views

Magento 2 Algolia connection time out issue

I have algolia integrated with magento 2 site , suddenly algolia is throwing error on product listing page and search page. Error is about Server connection time out !
0
votes
1answer
1k views

Magento 2: Why my products aren't showing in Catalog Search?

A fairly fresh installation of Magento 2.1.7. 1.9.3.x database migrated over. Everything was working fine, the search worked, until sometime today when it just stopped. The last thing I remember doing ...
0
votes
1answer
59 views

Magento Catalosearch not working properly

I have Magento1.9 store and have above 30000 products, all products was coming on frontend when searching by keyword, but suddenly for some specific keyword catalog search return "No products matching ...
0
votes
1answer
714 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 ...
0
votes
1answer
156 views

Search by store view only

I have a Magento store with 2 store views on 1 website. I want the default search function to just show items in that 1 store view thats been selected. How can i do this please?
1
vote
1answer
815 views

Search Option 'AND' operator in Magento 2

In Magento 1 there was a configuration option to choose alternative options for the search function, how would I go about achieving an 'AND' operator for searches in Magento 2? The current default ...
0
votes
0answers
96 views

Solr best match not working in Magento

I have used solr search in Magento but not find how to add specific attributes in search by Best Match. I have tried to give it with bellow code in Solr\Block\Catalogsearch\Autocomplete.php in ...
1
vote
1answer
96 views

Simple search is not working In Magento 2.1.7

I am new to Magento 2 and facing a problem in simple search. I searched product name but result is not displaying. The layered navigation return correct answer but product is not showing. How can I ...
2
votes
2answers
638 views

include custom Javascript file in catalog search frontend Magento 2

i have a custom module with frontend custom js located in app/code/Namespace/Module/view/frontend/web/js/preorder.js that i need to include it in catalogsearch frontend, for now my requirejs-config.js ...
4
votes
0answers
336 views

Magento & ElasticSearch- Issue on SKU search

I'm reading tons of Google search, but I cannot reach my goal. I've a M1.9.x website with ES. I've a custom module based on Smile Elastic Search (found on GitHub). I need to search with PARTIAL sku....
1
vote
1answer
595 views

Programatically insert search term

I want that all product name will show in catalog search suggestion list automatically, So I created a custom function in observer and call it on catalog_product_save_after event in config.xml Here ...
0
votes
2answers
301 views

Magento2: SearchCriteria OR/AND

use \Magento\CatalogSearch\Helper\Data as CatalogSearch; use \Magento\Catalog\Model\Layer\Category\FilterableAttributeList; use \Magento\Catalog\Api\ProductRepositoryInterface; use \...
0
votes
1answer
134 views

Catalog Advanced Search - Multiple Sort

I'm trying to sort Advanced Search result by Order parameter and Price. Eg: User sorts results by Manufacturer, direction DESC from toolbar. In this case I need to order by manufaturer DESC then ...
1
vote
3answers
1k views

Magento 1.9 search not working properly

Searching is not working for new added products, though it's working for old products. Any ideas?
0
votes
1answer
183 views

Search Issue in magento 1.9

I typed in Plain Back and I did not see any results for plain back until page 12. Looks like it searched for back first and then gave me the results for "plain back" together. I only want exact ...
1
vote
1answer
2k views

Magento 2 Elasticsearch: Root mapping definition has unsupported

I am trying to setup elasticsearch 2.4.5 on a internal server and trying to use this for my EE 2.1.6 setup (magento installed in my local version). Following are the ES details. { "name" : "The ...
3
votes
4answers
4k 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: ...
6
votes
3answers
816 views

Searching for SKU without special characters

The Magento front end search is not very good in my experience. I am having an issue when searching for SKUs. I have changed the SKU attribute to be searchable, search settings are combined like and ...
0
votes
2answers
162 views

Catalog search always returns “There is not any product available”

When I enter a product name in search box and search it then result is always display that : There is not any product available. I have done all configuration of product from admin. catalog, search ...
1
vote
1answer
327 views

Catalogsearch encodes query string for sort/limit in toolbar

If my search contains special chars like ü, ä they are encoded to %C3%BC for example. The strange thing is, it does work correctly in one template, but not in another one. Template 1: simple links .....
0
votes
1answer
135 views

Search box placeholder not chanigng

I am using Magento 1.7. I want to change the placeholder for my search box. Currently I have And I want to change this text to "Qué quieres encontrar?". To do so, I changed the corresponding code ...
2
votes
1answer
244 views

How to disable search by SKU (for specific store)?

For a specific store i want an remove search results, if search query matches our SKU pattern. disable "searchable" in attribute config is no solution rewrite core files is not wanted So, what i ...