Questions tagged [search]

Denotes questions related to the search engine on Magento.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

magento 2 admin product grid search by key word getting gate way time out

magento 2.4.4-p2 i have 13750 products. I have crated one dropdown attribute with 4 values it is required attribute. After that i have assigned attribute data to product it showing frontend also. in ...
1 vote
4 answers
2k views

Search result page blank page

Does somebody know why the xml bellow causes blank page on search result page ? Im using luma theme and have custom theme with Magento_Theme/layout/default.xml. All pages are shown correctly exept ...
6 votes
2 answers
3k views

Magento 2 Catalog Search with Hyphen

All my skus have the following format: XY-NAME-NUMBER, e.g BC-FLUID-0003. Now when I try to search that sku via catalog search in the frontend, I get all kinds of results, much more than I'd like to ...
7 votes
1 answer
2k views

Custom /catalogsearch/ filters

Beforehand I have to tell: I'm a total n00b on Magento and what I need to know is more a "common practice" or "standard" about how is something achieved in Magento since I have to ...
1 vote
4 answers
2k views

search by product id

If we want to search by name or sku, we can just alter the their respective attribute settings in admin panel. But how to search by mentioning product id? I thought changing ...
0 votes
2 answers
3k 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
2 answers
2k views

Remove Default header and create new one with menu and search bar

I created a new block with HTML and CSS from Admin Panel in Magento 2.2.5. I want to display this block as a header of my store, so I want the method to remove or hide the default header and also how ...
2 votes
2 answers
1k views

Adobe Live Search Installation/Config problems

I know this question is super generic, but is anyone else having just a helluva time getting Adobe Live Search installed, configured and enabled?!? I've been trying (apparently unsuccessfully) ...
0 votes
0 answers
19 views

Magento2 | Use category attributes for searching (Elasticsuite)

On my Magento2 site, I installed the elasticsuite plugin that leverages the elasticsearch search engine. I have seen that elasticsuite uses attributes such as "name", "url_path", &...
0 votes
2 answers
1k views

Layered navigation not working with search results?

a little help if possible, please. I cannot get layered navigation working with search results i.e. no filters? Works perfectly when browsing the website with all filters showing the correct results ...
0 votes
2 answers
2k 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
1 answer
26 views

Magento2 | Category links are incorrect in search autocomplete

My site is with Magento 2.4.4 multilingual and I use the ElasticSuite search module. Every time I go to edit a category for each store view and try to search for that edited category in the ...
0 votes
1 answer
2k views

Immense slow / hanging query when searching Magento 2

I am sorry that I can't supply more information. We have tried Mirasvit Ultimate Search but at one point it fills up and crashes, ruining the website layout. (I am in contact with Mirasvit and will ...
5 votes
1 answer
3k views

My Search result not showing relevance products properly Magento 2

When I search for any string, the relevant search results not working properly. Can you guys please look into the attached image? I have enabled name and SKU for the search. To reproduce this issue I ...
2 votes
1 answer
4k views

Magento 2: Get Product stock quantity details in Rest API [duplicate]

Need to get Product stock quantity in products details using Rest API. Method: GET Using API URL: http://127.0.0.1/jaipurart/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=name&...
2 votes
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 ...
1 vote
2 answers
737 views

Magento 2 a lot spam search

My website got a lot of spam search like 'download', 'en result', 'cn result'. How can I block this? or how to remove from the top search terms list?
4 votes
7 answers
4k views

Spam Search queries on my Website

We are continuously getting multiple spam search queries like this 大奖MG老虎机开户 Q82019309.com, on my website. I don't understand what is this & how to stop this? Does anyone knows anything about it?...
2 votes
1 answer
5k views

Search Results: List categories and products

In magento, it is not possible to search for categories. Currently it shows only the products in the list. I need Categories and products in the search result. Search results for categories should ...
0 votes
1 answer
1k views

Ajax search suggestions don't work

I want to search by SKU but suggestions don't appear. For example, most SKU start by "600", the ajax request made by Magento 2.x is: search/ajax/suggest/?q=600&_=1571930826272 The result is ...
0 votes
0 answers
15 views

Adobe Live Search Compatibility Custom Extension

Can we make custom extension compatible with Adobe Live Search which not contains any specific entity data like Catalog, i.e.?
1 vote
2 answers
5k views

Magento 2: Show out-of-stock products in search results?

We have disabled out-of-stock products from showing on the frontend, but would like to override this for search results only. How would we accomplish this? Note: this store has thousands of products ...
2 votes
1 answer
2k views

How to change a search input box into a search icon as in mobile view

How to have a search icon in the place of search box in the header, once the search icon is clicked the search box has to drop down, can some one help me how to do it
1 vote
0 answers
20 views

Search with - does not give results?

Magento 2.4.6 Searching a SKU like abc123 works ok, but as soon as a "-" is included like abc123-456, it does not find a single product. Why is that? I am using elasticsearch. Can the search ...
0 votes
1 answer
205 views

Catalog search index process error indexation process

I did a new installation of Magento (2.4.6-p2) and did the data migration from Magento 1. Everything seems to work, except the catalog pages, which give the following error on the frontend: Error: ...
0 votes
0 answers
34 views

Magento 2 preview throws error with query string

I am using elasticsuits and added new optimizer, when tried to preview with query string it is throwing error like Exception #0 (BadMethodCallException): Missing required argument $isUsingAllTokens of ...
1 vote
1 answer
3k 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->...
7 votes
1 answer
2k 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 ...
5 votes
1 answer
2k views

Magento 2 - Search title/product name only

Magento 2.1.2 We disabled the default Search value (YES/NO) of "Description" and "Short Description" to "NO", we will search only in the "Product Name" - but if the Search Keyword is "live" it does ...
2 votes
1 answer
2k views

Print SQL Query when user searches from admin product grid

I am using Magento 2.3.4 Can we print a SQL query when product search from admin product grid? I can print sql queries in our custom or product collection in frontend using $collection->getSelect()-...
0 votes
1 answer
418 views

Magneto 2.4.6-p3 products not showing in catalog or search

I have seen this question asked so many different ways and for various Magento versions. I've spun up Magento 2.4.6-p3 and after bringing up the frontend and checking the admin backend, I don't get ...
0 votes
1 answer
65 views

Magento 2 system configuration searchable dropdown how can i impliment

<field id="dropdown_example" translate="label" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1&...
0 votes
0 answers
72 views

Magento2 ElasticSearch product attribute weight based on value

If there is a way to set product attribute weight depending on it's value? F.e. we have 2 attributes to search: name(weight=10) and description(weight=1) So in search results we'll have first results ...
0 votes
2 answers
1k views

Magento 2 prevent search bar from entering mobile mode

When the screen width reaches less then 768x the search bar becomes a pop menu i.e. you click the magnifying class and it pops out. How would I disable this from happening?
0 votes
2 answers
537 views

Magento 2 high MySQL usage. Same query running over and over

Our Magento 2.3.5 has started to continually use 100% CPU and I found that the below query gets executed over and over for an unknown reason. Any information to what is generating the query would be ...
0 votes
0 answers
14 views

What is difference between search in Magento2 community Vs enterprise

What is the difference between search in the Magento2 community Vs enterprise?
1 vote
0 answers
29 views

Show upsell / related products in search results in Magento 2

Looking for some ideas on how to show the up-sell or related products in the search results. Let's say the customer is looking for Text123 that can be found in the description of 1 of our products but ...
0 votes
2 answers
51 views

Mageplaza Ajax search not working after remove .html prefix

After i removed the standard .html URL prefix from all URL's, the mageplaza ajax search module doesn't work propperly anymore. It shows me the right products but is linked to the old .html url. ...
0 votes
0 answers
17 views

Related Search Terms Duplicating by ajax call

Related search term is repeating via ajax call. We are using mageplaza layered navigation
0 votes
2 answers
320 views

Add index in existing index in magento2

I want to add an index to an existing index using Setup/UpgradeSchema: $connection = $setup->getConnection(); $tableName = $setup->getTable('sales_order_grid'); $indexName = '...
0 votes
1 answer
742 views

What is the correct configuration using opensearch and magento

I have a basic setup of Magento & Open search. I have been following the guide here https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/overview.html?lang=en In the ...
1 vote
4 answers
2k views

Magento 2.4.2 not showing products in category pages after version update

I have updated my Magento from 2.3.0 to 2.4.2, and seems to work fine, but one thing, if I go in any category page, I see no products, and even if I search for, I see no results. On the homepage there ...
0 votes
0 answers
8 views

How to make my custom module add pages to the site search?

My custom Magento 2 module has pages like: /mymodule/page/page/testpage And some text on that page. I want to add to Magento's site search index so if I search for "testpage" for example, it ...
0 votes
0 answers
29 views

Does it possible to enable livesearch based on condition in magento2?

I want to to add toggle in backend, if I enable livesearch result should be populate from the livesearch or else it should be from advance search. Does it possible?
0 votes
2 answers
395 views

Search Giving Error 500 Only On Certain Search Terms

Hoping someone can help. I'm running Magento 2.4.1, PHP 7.4 with Elasticsearch 7.10.2. I was using Mageplaza layered nav, but turned this off. Using Porto theme and a few other extensions which ...
0 votes
0 answers
42 views

Really Weird Search Error

Elasticsearch 7, Magento 2.4.5 p1, running on a vps Centos7 WHM, test done with 3rd party search engines disabled. All caches cleared, and re-indexed. Also ran test with 3rd party search extension ...
1 vote
3 answers
3k views

Filter search not working for custom admin grid

I have created a custom admin grid. In that search is not working properly. Anyone knows please provide me a solution ox_homeslider_post_listiong.xml <filterSearch name="fulltext"> ...
3 votes
0 answers
27 views

Magento 2 search customization

i want to implement search as below image 1st text box will get the result based on product name and SKU and 2nd text box will get the result based on CAS number(custom attribute) any help will be ...
0 votes
1 answer
949 views

Disable "Use In Search Results Layered Navigation" from the database for specific attribute

I've got a script that is extracting attributes and inserting them into my Magento installation. The problem is that one of the attributes has created hundreds of duplicate options. If I set the ...
7 votes
4 answers
5k 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 ...

1
2 3 4 5
16