cancel
Showing results for 
Search instead for 
Did you mean: 

Search Results Order Changing After Navigating Away from First Page

Search Results Order Changing After Navigating Away from First Page

The order the products are shown on the search results page change when you navigate from the first page to the second page then back to the first page.

 

Example: I search “black bike” then a search result page of 9 products show up, then I navigate to the second page and it shows a new 9 products, then I navigate to the third page and it shows a new 9 products, BUT if I navigate back to the first page the original 9 products shown have now changed to a different 9 products. I believe when you navigate off that first search result page that it is changing the ordering/sorting of all the products in the search result for some reason. I believe this because the first 9 products on the first search results page when I use a search term are only slightly-relevant, BUT when you navigate to page 2 then back to page 1 the new 9 products it now shows on page 1 are extremely-relevant.

 

This is a problem because my users miss what should actually be shown on page 1 aka the most relevant products to the search term.

5 REPLIES 5

Re: Search Results Order Changing After Navigating Away from First Page

Hello @matt_nelsen 

 

Why don't you try any advanced search with auto-suggest extension?

Some of them available for free and it will improve your search far better then default Magento search.

It will surely improve the overall customer experience.

Free Extension: https://magecomp.com/magento-2-ajax-search.html

Like this there are a lot of others, try which is fulfilling your requirements.

 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Search Results Order Changing After Navigating Away from First Page

@matt_nelsen I think it is not the issue which you have mention.

 

When we search anything in magento, it creates a query and returns the collection of products.

There is no order set there.

 

Everytime you go to different page it shows the random products from that collection.

In my opinion Magento search is best if you want a simple search but if the search is your top most criteria then only go for third party extensions because they also used the magento default search with some enhanced features and sometimes we don't even want those options.

 

So before buying check there features if you need them otherwise default search is the best option.

 

Thanks!

Re: Search Results Order Changing After Navigating Away from First Page

@Rahul Gupta 

 

I'm using the default built-in search engine. I don't need anything advance. The search works, after you navigate to the second page of the search results.

 

Example: You search "black bike" and my first page will show no black bikes. But if I go to the second page of the results and then back to the first page, I will now see black bikes on the first page because it is now showing relevant results.

 

My results should not be changing after navigating to another search result page. What is causing my searches to display random results at first, but if I click page two it changes and fixes itself to more relevant results?

Re: Search Results Order Changing After Navigating Away from First Page

@matt_nelsen I will explain you how it is working.

 

The thing is that when you search with the keyword "black bike" then it will not search black bike in name only, it depends which attributes you have used in searching.

 

Generally description, short description, name, sku etc are all included in searching.

So when you search with the keyword "black bike", it will search this indescription, short description, name, sku etc and where ever it finds it,it shows the results on search result page.

 

So the first page which you are telling that there are no black bike, check in all the attributes of that particular product, you can find black or bike or black bike in any of the attribute value.

 

So its your call, if you want to search only for product name then go to the product attributes and make searchable no for all other attributes.

 

Thanks!

Re: Search Results Order Changing After Navigating Away from First Page

@Rahul Gupta  I know how the search engine works.

 

I already know you can change what attributes are used in search, like description name sku etc.

 

What I'm saying is that the search is working! BUT only after I go from page 1 to page 2 then back to page 1.

 

The search results shouldn't be changing at all no matter what.

 

When I search ANY search term it shows products on page 1, example products ABCDE

Then I go to page 2 and it shows different products, example products FGHIJ

Then I go back to page 1, there is now DIFFERENT products on page 1, instead of showing products ABCDE its now showing LMNOP.

 

Why are my search results changing after I navigate off of page 1?