Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [search]

Denotes questions related to the search engine on Magento.

2
votes
2answers
20 views

Get product, with 0 quantity, by attribute (sku)

I'm importing products and I want to get product by its sku. This is the code: $product = $this->productFactory->create(); $record = $product->loadByAttribute('sku', '1234'); It works but ...
0
votes
0answers
22 views

Magento 2 - When searching simple products using name or SKU, configurable products appears

I'm having an issue with search, I have simple products added into Configurable products and when I try to search those simple products using the name or SKU the configurable products appears. I think ...
1
vote
0answers
14 views

Magento 2: Some of Algolia search results show local urls instead of the production

So I ran into a problem where some of the results of Algolia Search are broken, and show the image and product url of my local machine, while some of them work fine. Tried looking for it in products ...
0
votes
0answers
13 views

Catalog Search Results page - sort by price not working

Steps to reproduce: Search for a term and the results are displayed by default sorted by Relevance. Change the sort by parameter to Price and change the sort to ascending order. Results are not ...
1
vote
0answers
20 views

Catalog search show all products - Magento 1.9

When I do a search it does not give me a result based on my input but it shows me the whole catalog. Which is a problem because my catalog contains over 85,000 products, and it takes a lot of time to ...
1
vote
0answers
18 views

Magento 2.1.9 Community Edition Catalog Search page not displaying results

Magento 2.1.9 Version Community Edition. My Catalog search page is not displaying any results as show below. So far what has been done as testing.But still not working. Re indexed still not ...
0
votes
0answers
13 views

Extend Catalog Search Indexer

I would like to extend catalog search indexing by adding some own values to the fulltext index. I am researching the magento catalog indexer a while now and do not find a good entry point to change ...
1
vote
0answers
18 views

Magento 2: To set 301 URL in Magento URL rewrites for this particular search

How to set 301 URL in Magento URL rewrites? From https://www.example.com/catalogsearch/result/?q=%7Bquery%7D To https://www.example.com/catalogsearch/result/?q=query I have tried with below ...
1
vote
0answers
19 views

Catalog search result problem

I have a catalog with over 85k articles, when I do a search as a result I always find the usual 4 products. I have also installed the Amasty Search Pro extension and it is able to find all the ...
0
votes
0answers
10 views

Layered navigation custom filter products count

I've problem with products count in filters in layered navgiation. I've made filter for special price products, and it's works ok, products list is filtered. In filter applyToCollection I have $...
0
votes
0answers
12 views

Algolia Instant search on Magento

In default setting algolia search entered keyword as prefix, but i want to search entered keyword and show result if it's inside of any of my product. How i can do it ?
1
vote
1answer
38 views

CatalogSearch results looking for partial SKU

I need to be able to search by partial string of a SKU, for example, if a SKU of a product is "CUS123.5NYS" the customer may also be able to search by "123.5N", but currently, it only works if I ...
1
vote
1answer
20 views

Can I add the search box to a template without xml?

Can I add the search box to a template without xml? I need to create a dropdown with the search box when I click on a magnifying glass icon.
0
votes
0answers
11 views

How to overide search autocomplete model for Restricting only pick 5 item from collection

I need to restrict search autocomplete results. I want to Restrict that only 5 item pic for query. I did this Search/suggest.php controller. But this is not a good way , i want to modify collection ...
2
votes
3answers
108 views

Get search result count in Magento 2

How to get Search result count and keyword in result.phtml in magento2. I have overriden the Magento_CatalogSearch/templates/result.phtml file. I need to show the count returned from the search ...
0
votes
2answers
33 views

How to create Search “Textfield” filter in admin grid | Magento 2

I am trying to create Grid search feature based on strings entered in text fields as: This functionality is in some of the default admin grids and few have filter button like this: I wanted to ...
0
votes
0answers
8 views

Search on front end not working = Cannot initialize the indexer process FOR Rebuild Catalog product fulltext search index (Catalog Search Index)

Magento 1.9.1 Porto theme We had some server performance problems. I did a re-index couple of times and broke one of the indexes (I guess). Now - when anyone tries to search on the front end - they ...
1
vote
2answers
20 views

Magento 2.1.12 - all products not showing up categories and search results frontend

Since this weekend one of our Magento stores stopped displaying products on all category pages and the search results page. We have tried everything from reindexing all products, deleting the var ...
0
votes
0answers
3 views

Magento 1: like query in custom module is not working

I created a custom search module with custom table in magento 1.9.x. I have to filter my collection with search text. Here is my code: $query = 'searchtext'; $collection = Mage::getBlockSingleton('...
0
votes
1answer
56 views

Magento 2 re-index clearing catalogsearch_fulltext_scope1 table

Every time I re-index the table catalogsearch_fulltext_scope1 gets emptied. Since the table is empty we're unable to search product names or descriptions on the front end. All search results come up ...
5
votes
1answer
71 views

My Search result not showing relevance products properly Magento 2

When i search for any string, the relevance search result not working properly.Can you guys please look into in the attached image? I have enable name and sku for the search. To reproduce this issue ...
0
votes
1answer
17 views

looking for 'Search & Download' extension for Magento 2

Is there any extension available for Magento 2 that offers the ability to search for a SKU/ProductName and return result download links for related files ( such as driver firmware, user manual,etc)... ...
0
votes
0answers
14 views

magento 2.2.6 Simple Product will be output when searching on the category page

magento 2.2.6 Simple Product will be output when searching on the category page. If you solve the same problem, please tell me how to do it.
0
votes
0answers
19 views

M2 Search Result Not Displaying Correct Result/Products

I've a multi-store setup using multi-website approach. For some products, when I run a search query, I am not getting correct results, instead completely unrelated products are getting displayed. ...
0
votes
0answers
46 views

Search giving no results

Front end product search not working for any keywords. Advanced search works if you don't use product name or description. Custom attr. works, as does SKU. Every time you search you get 'Your search ...
0
votes
0answers
16 views

Magento 1 Search - No Results After Update

Hi guys we dropped the latest magento core over our installation to update everything as it was a little out of date. Since then the search has been returning no results. I have done all of the ...
0
votes
2answers
31 views

Move search form right after top menu in Magento 2.2

How to move mini search form after header menu? I am using <move element="top.search" destination="catalog.topnav" after="-"/> to achieve this but no success.
0
votes
0answers
6 views

Cached Search Terms Showing Up

In the top menu search input, the query a user searches shows up for the next user. This could obviously result in some awkward situations. Has anyone else encountered an issue like this? What are the ...
0
votes
0answers
16 views

Magento 2: Add Buy now button (or any button) in the search autocomplete suggestions

I am using Mirasvit Spihnix search in Magento 2.1.8. I want to add a button to the search autocomplete suggestions. As in picture below:
0
votes
1answer
22 views

Magento 2 - Is it possible to turn off search terms

Is it possible to turn off autocomplete or popular search terms? We have a few of these show up when you put in certain keywords and it just looks ugly.
0
votes
0answers
82 views

Magento 2 Add Serchbox in header

I need to add a searchbox in the header. With file structure details explained. Thank you
0
votes
2answers
35 views

Magento2 Search Issues

Using Magento 2.1.10 The search part of Magento 2 seems quite buggy. I have a product titled "abc with xyz". When I search "abc", the product gets displayed but its pushed in between the collection,...
0
votes
0answers
22 views

Magento2 : can i add search bar on top on layered navigation bar on category page

how can i add search bar on left bar in category page.
0
votes
0answers
57 views

Magento2 - DataTable.js - Custom Grid with Ajax Pagination and Search filter

Is there any working example which we can use to integrate Ajax search and pagination filter for custom grid and tables on front-end ? Something similar to DataTable.js ?
0
votes
1answer
64 views

Magento2: how to get customer collection using search functionality?

how to get customer collection using search functionality?
1
vote
0answers
23 views

Magento 1.9.3.10 - Search doesn't work, advanced does!

Hi guys got a weird one the normal magento search returns 0 results, but the advanced search works? Tried: Reindexing Clearing Cache Re updating attributes of products to link to website Checked for ...
0
votes
1answer
44 views

Magento2.2 - Error in catalog search

I have facing problem on search product(s) from my website. Someone please help me out to know what happens in this error. When I search for a product in the site search, for example "Dress", the ...
1
vote
0answers
56 views

Magento 2.2.5 - Table catalogsearch_fulltext_scope1 not being automatically generated

Summary The exception log becomes bloated with "main.CRITICAL: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'catalogsearch_fulltext_scope1' doesn't exist". sometimes reindexing cycle is ...
1
vote
0answers
36 views

How to search and replace words in ssh? [closed]

I need to change more than 200 words like ( good ) to ( best ) in all files on my hosting. I have SSH access.
1
vote
0answers
42 views

Magento 2 Products 404

Every one of my products 404 when i try using the SEO rewrite link, also when i direct link to the product page it 404's, my search as well doesn't work (which is probably is cause of this). I have ...
0
votes
1answer
39 views

how to override framwork class in magento2

I am trying to override magento/framework/Search/Search class for which I have used in di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
3
votes
2answers
286 views

I am unable to edit search engine robots from admin

I am trying to edit search engine robots from content and theme configuration but no option to edit. Version Magento 2.2.5 Any luck ?
1
vote
1answer
57 views

Shash (/) in SKU is stopped search in Magento 2

I have an issue with Magento search . I have a slashes in sku , and when i am trying to search specific product for example "ABCD/4" it shows ABCD/4 and ABCD/2 Its magento problem? Please help , ...
0
votes
0answers
37 views

Disable search Input field hide/show functionality of Magento 2

I have to remove default search input hide/show functionality of magento 2. currently in responsive view when we click on search Icon search input field is displaying. when we click on label of focus ...
3
votes
1answer
58 views

How to return search API response from controller in magento 2?

I have an API(ukvehicledata) for search using registration id. I want to integrate with magento 2.2 I am getting response in controller as JSON format. I have converted it into an array. Now I ...
1
vote
1answer
60 views

Magento 2: layered navigation filter query (code)

I want to get the layered navigation filter query which applies on products according to the attribute value. I want to change that query. How can I get that piece of code where query is appling? The ...
0
votes
0answers
26 views

Search is not working for some products with magento 1.9.3.7

I know there is already asked this type of question but it does not work for me. I am using magento 1.9.3.7 version when I am going to search products, for some products it is working and for some ...
1
vote
0answers
31 views

How to add customSearch component in admin products grid in Magento 2?

I have to add custom "Search by Keyword" functionality for the products grid in Magento 2. I have to add one text field there for search. when I type it give me search result suggestion. By default, ...
1
vote
2answers
186 views

search not working - Fatal error - magento 2

My website is in Magento ver. 2.2.3 early my search functionality was working properly ..but no idea suddenly from last week i am getting below error message ... Fatal error: Uncaught Error: Call ...
0
votes
1answer
131 views

Magento 2 - Display search button

I need to add a icon instead the search input form and when I click on this icon to display the search input form? something like minicart.