Questions tagged [catalogsearch]

Denotes questions related to the Magento catalog search engine

Filter by
Sorted by
Tagged with
5
votes
1answer
1k views

Magento2 search like searching using REST API

When using magento search REST API you can search with logical AND search http://devdocs.magento.com/guides/v2.0/howdoi/webapi/search-criteria.html#logical-and-search For example I want to search ...
1
vote
1answer
143 views

Search Param in block title magento2

I need to add the search param in the title of the block. Currently i have on catalogsearch_result_index.xml <referenceBlock name="page.main.title"> <action method="setPageTitle"&...
1
vote
1answer
3k views

How to enable or add layered navigation to search result page in Magento 2

I found some equal questions, but no answers are available in Magento 2. Any one can tell me how to enable or add layered navigation to search result page in Magento 2. Any help would be appreciated....
6
votes
2answers
4k views

How to filter product collection by matching string like search in Magento 2?

We have loaded product collection based on category ID, we are further trying to filter the product collection result with query string. We have tried : Query string set and get is working fine ...
0
votes
2answers
696 views

Search issue on Magento 1.9.3.1

I have an extension to replace the default Magento search, but I have always this message no product results. On the previous Magento version was work fine, after upgrade is not work anymore. I add ...
3
votes
0answers
141 views

Catalog Search Refinement issue on admin login

I trying for this past few hours, but i can't find out the issue. I installed the "Catalog Search Refinement" and checked on front end yesterday. Today I'm tried to login on admin panel and i get this ...
1
vote
1answer
337 views

Rewrite catalogsearch_result_index from config.xml

I want to rewrite /catalogsearch/result/index/?q=querystring to a custom url /search/querystring. For this I have created a custom module and in config.xml added below code : <global> ...
6
votes
1answer
1k views

Magento 2: How to change Advanced Search from “AND” to “OR”?

I'm stuck with this situation: I have 2 select-type attributes: A and B for example In both of the attributes, I have the same list of Options (but they are different option ids) For example In ...
1
vote
0answers
44 views

Magento Change Search Result [duplicate]

I have a website in magento, right now search results showing in product listing page, i want change the search result page into Product view page. I don't know how to do this, please help me anyone?...
0
votes
1answer
4k views

Magento 2 Search not working properly

In my Magento 2 setup, I have products called something like 'Xxxx 1 DS'. When I search for 'xxxx', the product pops up. But when I search for '1 ds', there are no search results. Is this because the ...
0
votes
1answer
399 views

How can I replace the search box into search icon?

Can anyone explain how to replace the default search box into search icon?
0
votes
1answer
16 views

Product informations template

I would like what template is invoked to display product information when you click on result list of catalog search. Search in catalog by keyword -> list of results > click on a product
1
vote
1answer
29 views

Search never completes, but only with *some* terms

Only for some terms that we have discovered (eg "backpack", etc., for other terms everything is fine) our Magento store search seems to time out after about 10s and returns a blank page saying: "...
3
votes
4answers
3k views

Magento 2: How to use ElasticSearch?

I'm new to Magento 2. I want to use ElasticSearch as a search engine and also for autocomplete for Magento. How can I do this? Any suggestion is welcome. Thanks?
0
votes
0answers
52 views

After saving product on frontend, search results disappear

I have an observer that watches the event: catalog_block_product_list_collection When this event triggers my code iterates through the collection, finds the SKU for a certain product, then changes ...
0
votes
1answer
671 views

One page search result using ajax

I'm using Magento 1.9 C.E, and I want to remove pagination from catalog search result page. I want all the results to be coming on the same page itself with ajax. On click of a load more or something, ...
4
votes
1answer
5k 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 ?
0
votes
1answer
43 views

Why am I getting unrelated items in my site search?

I've had a play around with various settings - previous to me running the site I realized that when you searched for something it wasn't bringing up anything related, as the site wasn't using ...
0
votes
0answers
249 views

How to change default order of products in search result page (Magento 1.9)

I have been using Solarium search module. The solarium module returns the correct search results in the order of relevance and is stored in 'catalogsearch_result' . The problem is that they are ...
0
votes
2answers
645 views

How to change the getPrice() function to all Entire website

Actually, We have implement some custom calculation for all type of products, Now i have edit the app/code/core/Mage/Catalog/Model/Product/Type/Price.php , Its working on homepage and cart and ...
1
vote
1answer
1k views

Magento 2 search result sort order changes(shuffles) every time result page is refreshed

We have a Magento2 EE configured with Solr and Manadev layered navigation extension. When we perform a search: Search result yields correct and as expected result Result is displayed and sorted by ...
1
vote
0answers
55 views

How to get category design style from search?

My magento shop has 3 main categories, each of them having 4 sub-categories My 3 categories are 3 kinds of products : let's say Fruits, Cars, Clothes. They each have a general colour theme Fruits => ...
0
votes
1answer
788 views

Magento 2 & ElasticSearch - Category Page Throwing Error

I have setup ElasticSearch, and it appears to be working. I am getting some errors thrown when I try and go to certain categories. The error: 2 exception(s): Exception #0 (Elasticsearch\...
2
votes
1answer
2k views

Magento 2: Error while reindexing Catalog Search

I am getting error while trying to reindex catalog search with the following command: php bin/magento indexer:reindex catalogsearch_fulltext Here is the error that I am getting while running the ...
2
votes
0answers
589 views

catalog search result default sortBy by multiple attributes at once

I want to sort my catalog search result by multiple attributes. For default sorting by price I have added below code in xml file : ... <catalogsearch_result_index> <reference name="...
2
votes
1answer
2k views

how to setTemplate for top.search in magento2 [duplicate]

How to setTemplate in custom module for search. Spacename/Modulename/view/frontend/layout/default.xml <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * ...
0
votes
1answer
2k views

Does layered navigation always have to use the configured search engine?

In Magento 2.1 custom search engines were introduced, so that MySQL could be replaced with ElasticSearch in EE. My own search adapter works well in the search but now I realized that it is also used ...
2
votes
1answer
134 views

How to find what query executes while doing reindexing? [duplicate]

I have a custom module that added some re-indexing rows in System->Index Management. Currently its giving some issue. While doing it manually site goes down. Is there any way to find out what ...
0
votes
2answers
560 views

How to get catalogsearch/result page content on a cms page

I have Magento version 1.9.2.1. When I search for some query_string then url becomes http://domain.com/catalogsearch/result/?q=query_string. But I want to get same result on different url and url ...
1
vote
0answers
48 views

Magento catalog search

I'm trying to find a product using its name on magento but it renders alot of products that have nothing in common with the product. I set to "No" the searchable parameter for all other attributes so ...
0
votes
1answer
336 views

How to override product search result block

I need a quick help, need to override app\code\core\Mage\CatalogSearch\Block\Result.php How do I do that in my module?
1
vote
1answer
612 views

How to enable search for selected dropdown values?

I want to keep the dropdown attribute along with their values at frontend (Home Page) for searching the catalog. I entered following code: <div class="search"> <li class="fields"> <...
1
vote
1answer
261 views

Magento 2 : Equivalent block class for CatalogSearch Layer?

What is the equivalent class for Magento2x for the below: core\Mage\CatalogSearch\Block\Layer.php (Mage_CatalogSearch_Block_Layer) Cause in Magento2, we have only CatalogSearch/Result.php Problem: ...
0
votes
1answer
254 views

get result count for a search word

I would like to find the result count for a certain search word before it gets automatically added to the search term list. I thought it would be simply $query->getResultCount() but this is ...
0
votes
1answer
62 views

SQL error when i try to search in frontend

im very new to Magento, issue is when i try to search somrthing on my magento frontend its showing me error please help me
0
votes
2answers
2k views

Remove Advanced Search Link From Header Magento 2

I am trying to remove the advanced search link from the header in Magento 2 but it doesn't seem to be disappearing after I've extended the default.xml layout file found in the catalog search module. ...
2
votes
1answer
2k views

How to show simple calatog search form on CMS page?

How do i add a simple catalog search form on a CMS-page? Is there a widget code or something for this, just an easy way to implement it anywhere.
1
vote
1answer
337 views

Search Query with Umlaut (äöü) not working

Search Query with Umlaut (äöü) not working, what can i do?
3
votes
2answers
3k 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')->...
1
vote
0answers
24 views

formkey in layered navigation links on search results pages?

I just noticed that the layered navigation links in catalogsearch/result have a formkey embedded in the URL. The links look like: https://www.example.com/catalogsearch/result/index/form_key/...
0
votes
1answer
862 views

Ignoring special characters during catalog search

I want to ignore special characters while catalog search. When a user enters any special character in the search box, the search shall find results for the combination both with and without special ...
1
vote
0answers
408 views

Magento Search returns an empty Catalog Element, no “No Products Found” Message

One day the Magento search was working, and then this morning it appears to have stopped entirely. For troubleshooting, I have already: Cleared the cache via Magento Admin Panel Deleted the /var/...
2
votes
1answer
1k views

How to override Magento 2 REST API Product Search Results for Custom Attributes?

Magento 2 REST API returns product search results (V1/products) for custom attributes in the following way by default (exemplary product): { ... "custom_attributes": [ { "attribute_code"...
3
votes
1answer
4k views

Magento2: Override layered navigation template

I am trying to override layered navigation template in a Magento2 app. Here is my code: Layout configuration: <!-- app/code/MyVendor/MyModule/view/frontend/layout/default.xml --> <page ...
0
votes
2answers
129 views

remove values from search result in catalog search top search box

i have tried core/Mage/catalogSearch/Helper/Data.php and ResultController.php in Controller and Query.php in model but couldn't find code so i can fix it here is snapshot attached which i have to ...
3
votes
0answers
59 views

Excluding Products from Search

I run a webstore selling automotive products. In the automotive industry, it is very common for a single letter in a vehicle's badge to indicate a significant difference (e.g., AWD indicated by an "X" ...
1
vote
0answers
293 views

page search result. hide sidebar

I need to hide the sidebar in the page search result. In file local.xml and catalogsearch.xml there is <catalogsearch_result_index translate="label"> <reference name="root"> ...
4
votes
2answers
6k 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, ...
6
votes
2answers
1k views

Magento 2: what is the search_engine.xml? How to declare a new search engine?

Some of you may have noticed the presence of the following file app/code/Magento/Search/etc/search_engine.xml: <?xml version="1.0"?> <engines xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
3
votes
1answer
179 views

Magento 1: search term is not being added back

Ok here is the scenario, I've tested that on a fresh Magento 1.9.2.4 with sample data. Let's say I have a search term that is "tee". 1st Test remove all synonyms for "tee" delete "tee" from the ...