Magento faceted search only shows filters of current page - search

We are using SOLR as our search engine. When I search for a product, say "computer", the filters on the left side only shows the filters for the results of the current page.
Suppose I have 35 IBM computers and 15 TULIP, my page would display only 10 products per page. I would have 5 pages then. The first two pages, maybe only have IBM computers, then IBM and Tulip, and then only Tulip.
The thing is, when I am on page 1, the filter "Brand" on the left side only shows the option to filter by "IBM", because that's the only brand on the page.
How can I make sure that the brand from all the search results are used to display the brand filters.

In the end the problem was a function getIsEngineAvailableForNavigation() which can be found in /app/code/core/Enterprise/Search/Helper/Data.php.
The price tax check was causing our problems.

Related

Some phrases and products for empty text search

As a part of empty search in Hybris,we are required to display some phrases and products even when customer does not search anything.
How to go about this scenario?Will we have to make changes in the individual controller methods?
You can return a searchEmpty CMS page whenever searchPageData doesn't contain the data.
Now you can design the searchEmpty CMS page as you want.
Like the page contains phrases and product components to display phrase and products which can be changed/configured though WCMS.
Edit:
As you mentioned in your comment, you want to show static text and products in autosuggestions when the user clicks search box.
Approach 1.
You can render static text and your selected product data in the hidden container with all pages. Now on search-box click event show that data as autosuggestion dropdown.
Approach 2.
On the search-box click event make ajax call(custom mapping) to get the static data content(JSP).

Sharepoint 2013 search - How can we hide promoted results/best bets for a particular search results page

How can we hide promoted results for a particular search results page. This page shows results from a particular list and I do not want to show best bets on this page which are from other location.
If you check out this reference:
https://support.office.com/en-us/article/Change-settings-for-the-Search-Results-Web-Part-40ff85b3-bc5e-4230-b1dd-f088188e487e
you will see that Promoted Results is an option you can turn off in the Results Settings of the Search Results WebPart.

Results summary #total not showing in Drupal Views Full Search after search

I've got a search page here:
http://freerange.raisingofamerica.org/resources
It shows the results summary when the page first loads:
"Found 44 resources related to your search. Use filters above to narrow results."
When I search for something, the total results summary disappears. It just says, "Use filters above to narrow results." I want it to show me how many results I got from the search.
Any ideas? What am I doing wrong?

Google custom search with ability to search specific section

I want to use google custom search for my wordpress setup. I need the custom search to be able to search the whole site or if a checkbox is ticked, only search within a certain category of the site.
Can anyone point me in the right direction with this?
You can have 2 custom search engines- one searching your whole site and another one searching the specific categories you mentioned. Based on whether the checkbox is checked or not, you can display the appropriate search box in your page. A demo of how to select specific sites or whole domains is shown in http://preciselyconcise.com/apis_and_installations/google_custom_search.php

Does comma seperated list in a search box indicate ALL or ANY?

We have a reporting web site and in the search screen most of the fields are comboboxes. We then AND all the fields together to get a filtered list of records. For example if i chose NY in the City dropdown and priority 1 in the priority dropdown and sales in the team dropdown, it would general something that looked like this (pseudo SQL)
Show me all record where City = 'NY' AND Priotity = '1' AND Team = 'Sales'
We now just added tagging to our records so to support searching by tag(s), we added an additional textbox to search by TAG where you can entered a comma seperated list.
Right now this is an autocomplete textbox which supports multiple entries.(similar to the Multiple Cities (local) example on this page.
When we rolled it out people had different expectation on how search would work when you entered multiple items in the text box. Would it:
Do an AND and only return records that had ALL of the tags listed.
Do an OR and return records that has ANY of the tags listed.
It turns out that we rolled out #1 but many people expected #2. Is this just basically preference or is there a default standard here in this example. Our only solution right now is to add a radio button next to the textbox to say ALL or ANY
If your users expect it to work one way then that's the way it should work.
This is a great example of why you should test early and often with actual users.
I'd say it is not basically preference, but expectations based on what users experience in other types of searches. The "OR" was probably expected by your users as use of tagging gets pretty close to being like a search engine searching on any word in a text and most search engines do an "OR" and then order the results according to how many terms (tags) were "hit".
If going all the way supporting AND and OR operators is not feasible right now, then I would indeed offer an "All" versus "Any" radio button and default it to "Any".

Resources