As designed Search in admin not finding some items

AndyB

Well-known member
Affected version
2.0.7
When I use the search in the Admin control panel:

1531245852870.webp

If I search for "Imagemagick PECL extension" it comes up empty.
 
If you type "imagem" it will automatically appear.

I don't think it should require a truncated portion of a word to get results, seams to me this is a bug. Also the result you show is just for the phrase, I'm looking for the location in the ACP where this feature can be enabled, that would be in the Attachments page.
 
Imagemagick_PECL_extension would work aswell.

This only returns the phrase. I'm looking for results that include Options. Here's an example:

1531273845892.webp

Notice how this returns the expected result. However when I search for "Imagemagick PECL extension" it comes up empty.
 
I think it's as designed in this case. The option is dynamic render through template (admin: option_template_imageLibrary) so the search won't look up into it
 
This only returns the phrase. I'm looking for results that include Options. Here's an example:

View attachment 179604

Notice how this returns the expected result. However when I search for "Imagemagick PECL extension" it comes up empty.
I get your point, but in that case you're using the wrong search. You would want to search for templates containing that phrase instead for the phrase itself. So everything's working as expected.
However, you could open a suggestion with the request to link phrases in the admin panel to the respective criteria, i.e. "Imagemagick_PECL_extension" would be grouped under "boardInactiveMessage".
 
The issue is that you're searching option values, not the option name

Screen Shot 2018-07-11 at 9.17.33 AM.webp

Same would happen if you were to search the values of "FontAwesome Source" ("Locally Hosted", "Google AJAX API", etc) rather than the option itself.
 
They'd probably have to actually create a search index to be able to do that since there are so many ways option values can be defined (php callbacks, named template, defined directly in the option, etc)
 
We don't index absolutely everything. Your most recent screenshot is of a setting when editing a forum and it isn't part of the Options system.

In the Options system we generally only "index" the title e.g. "Default image processor", the description e.g. "XenForo can make use of various different image processing libraries to produce image thumbnails etc. Select your preferred library from the list above." and the option ID e.g. "imageLibrary".

I say "index" because it's not exactly an index but a live database lookup which looks up the search query in certain phrase groups, and the option ID.

But, ultimately, this is working as designed. It's just about searching for the right thing.
 
Back
Top Bottom