Magento 2 order the simple search by name, not relevance - magento2

I have a project (Magento 2 site) where one of the requirements is to order the results of the search (using the search box in the top banner) by product name instead of the default 'relevance'. This doesn't appear to be as easy as changing the sort parameters for a category search which has configuration options in the XML files for that.
I've dug down into the search code but so far any attempts at altering the locations where 'relevance' is specified have resulted in no search results at all.
Any one know how to achieve this?

You can change the "sort by" under: backend -> stores -> catalog -> catalog -> storefront. Set "Product Listing Sort by" to "Product Name".

Related

Advanced tag filtering not working for more than one tags selected in same collection

The problem I'm having right now is related to advanced filtering in shopify theme "Fashe"
I have made certain filter groups in my store using advanced filtering by group option. But when i choose a filter in one category, I want other filters to be updated as well related to that category.
Like If i choose collection type to be of one kind, i want the collection colors to be related to those kind only. right now it shows me all the colors available in my store. If choosing one filter, it should change the values in other filters also based on the collection type.
If somebody has this issue resolved, I would be very much pleased if you help me with this.
SECOND THING
One more issue is when I select filter A, the theme gives me the results associated with that filter but when i click Filter B (filter A being selected already) the theme gives me no results instead it shows that no products matching. Somebody with this issue???
Example: www.mytheme/collections/fine/opt1+opt2
This works as an AND statement. But I want to show results from both, opt1 and opt2.
Shopify should work with OR statements. Like combined results of filter A and Filter B.

Azure DevOps Boards - display query result on a board

how to develop the extension to display query result on a board? Such thing is not possible in the Azure Devops unfortunatelly. I've found two extensions on the marketplace which are doing what I need:
AA Query Board
Query based boards
but this extensions are not updated for a long time and I couldn't contact the authors (I need to change few things in order to be able to use it internally in my company).
I've found also this topic Add tabs on query result pages, so it looks like it's quite easy to add new tab to the query result menu, but I have no idea and I can't find any info how to get data (work items) from query result to display them?
Rest of the extension is just to display this data in grid, so that would be also quite easy, but getting this query result data is blocking me.
There is a Query Results Widget that you can use to display the query results on the Dashboards under Overview.
1, First you need to create a shared query if not exist, and save query to the shared queries folder shown as below screenshot. (You can click the Column options from the Editor page to add and remove columns to be shown on the results)
Or drag and drop the query from My Queries folder to Shared Queries folder.
2, Go to Dashboards under Overview, and Click Edit, then search and add widget Query results
3, Click the gear icon on the Query Results widget to configure it and select the query you want to display. Then the query result will be display on the Dashboards
Update:
There are some other ways to show the query results on the dashboards, For below example:
you can select your shared query and click more actions(3dots) and click Add to dashboards. This will display simple total number of query results.
you can also create different Charts for the query results and add it to Dashboards.
Select your shared query and go to Charts tab, the choose New Chart, select a Chart type, After you configured the chart, you can click the 3dots on the chart and add it to dashboards, check below screenshot:
Eventually I managed to contact the author of the "AA Query Board" extension and it turns out that he has a public repository on GitHub with the source code of the extension, so basically everyone can lookup how it's done or base on it.
Link to the repository: https://github.com/staticnz/aa_query_board

Filter on Custom Fields

We have added 5 custom fields but are unable to find a way to filter based on data in these fields. Anyone any ideas or resolved this?
Custom fields have been added in VSTS using customization under Process settings.
The feature is available in VSTS.
Below is the detail steps to add a custom field and filter query work items based on the custom field (you can compare with your steps):
1. Add a custom field
In the Process page (https://account.visualstudio.com/_admin/_process) -> Processes Tab -> select the inherited process -> select the work item type you want to add a field (such as PBI in the example) -> New field -> specify the field you add (it's newField in the example).
2. Query work items based on the custom field
Go to a project which you are using the inherited process -> Work Hub -> Queries Tab -> specify the custom field to filter the work items.
At this moment there is no support for this on Boards and Backlogs. Queries as described by Marian might be your best bet. There is an open ticket for it. Please vote to (hopefully) prioritize this.
https://developercommunity.visualstudio.com/idea/606538/add-the-ability-to-filter-boards-by-custom-fields.html
https://developercommunity.visualstudio.com/content/problem/1270736/how-can-i-add-my-custom-filter-columns-in-boards-a.html

VSTS How do I search All Fields?

I would like to create a Query in VS Team Services > Work > Queries that searches all fields in Work Items that are indexed for full-text search.
To search for the text "confusing", I can create a query for
Title contains confusing
OR Description contains confusing
OR Steps to Repro contains confusing
OR History contains confusing
Is there a better way?
You can easily do so using Work Item Search. Just go to Work hub and type in the text "confusing" in the search box and hit Enter.

Typo3 - Indexed Search how to order results by page title?

Inside the advanced options of the Indexed Search result page, there is an option to order results. While all other options are working fine, the two fields inside "Order by" have no influence on the results order.
The configuration page of indexed search has an option "basic.flagBitMask" where it says you can increase the importance of and tags, but setting it to "128" to increase the title importance has no influence at all.
How to get this options working or is there another option to show results with the searchword in the title on top of the results list?
I used the default index_search.tmpl which comes along with the extension.
The Typo3 version is 7.6.6, Indexed Search version is 7.6.0.
This problem seems to be a bug. In current versions of Indexed Search ordering is not possible when MySQL driver for Indexed Search Engine (indexed_search_mysql) is used.