revolution
revolution copied to clipboard
Manager Search should always find named elements
Feature request
Summary
If a site has a lot of elements with similar names and/or elements containing a search term, any element with a name that is an exact match should be shown.
Examples are my own implementations.
Example 1, MODX 2.8.4: I search for a snippet named 'GetImage.' I have many snippets with that prefix but the actual 'GetImage' is not shown.
Example 2 MODX 3.0.1: I search for a snippet named 'functions.' I run that snippet in other snippets, many of which are found, but the actual 'functions' is not shown.
It many take an extra moment to show the exact match, but this is back-end time, so will not impact site visitors.
Are you asking that the prioritization of the results be refined, or that the ability to search for an exact match (by quoted string)?
Either would work, but I think the first one is easier to implement.
If an exact match is found, always include it. Ideally at the top, but anywhere in the list is fine.
Actually MODX3 seems to be a change in behaviour. MODX2 only showed elements whose name matched. MODX3 also shows content matches.