-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "whole word" search option to search's #17751
Comments
And thank you guys so much for looking at this. |
why not? |
Am 29.08.2017 um 10:31 schrieb Brian Teeman:
> since exact can't be used with multiple SINGLE words.
why not?
'exact' matches the search string as a whole. You currently can't search
for 'bug' and 'direct' without matching 'debug' and 'redirect'.
Regards,
Niels
…--
| New Stars on the Horizon: GreenCape · nibralab · laJoom |
| http://www.bsds.de · BSDS Braczek Software- und DatenSysteme |
| Webdesign · Webhosting · e-Commerce · Joomla! Content Management |
------------------------------------------------------------------
|
Thanks for the explanation |
For reference smart search aka com_finder searches for whole words |
@brianteeman but sadly the layout is poor. at least with Ajax live search it is. The ultimate question is if smart search does it, why not simple search :P lol |
Sorry but I don't understand your comment |
@brianteeman its ok, lets worry about that on another issue/pr |
@nibra can’t we do this with OR statements? If we explode on a space? |
It is of course possible to add a search query parser. The problem IMO is to make it intuitive to use. |
I was thinking more of a search option config for now, opposed to allowing the user control. We could allow overriding at a later date to give user control in search it desired.
…On 2 May 2018, 01:58 +0100, Niels Braczek ***@***.***>, wrote:
It is of course possible to add a search query parser. The problem IMO is to make it intuitive to use.
AND (all) and OR (any) are already implemented - they're just not searching for whole words.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Adding this feature for Joomla 3.x is nearly impossible, mainly because you are requesting a new behavior for com_search, but which at the same time requires all existing search plugins to be modified to support this feature. For Joomla 4.0 I hope to make this unnecessary, too, because we hopefully remove com_search and all related plugins for 4.0. Feel free to help making this possible and improving searching in Joomla by testing these PRs:
|
I did spend quite some time on this but it is virtually impossible for the reasons stated by @Hackwar If you really need this functionality today in J3 then you will have to use smart-search. |
Steps to reproduce the issue
in the "testing" sample set if you search on "bug direct" you'll get partial matches.
in my experience this is rarely the case desired.
I think we should add an option for "Whole word" search instead of just
any, all & exact.
Expected result
Return ONLY matching whole words when set to any &/or all since exact can't be used with multiple SINGLE words.
Actual result
partial matches returned.
System information (as much as possible)
systeminfo-2017-08-29T02-34-30+00-00.txt
Additional comments
Looks like the problem starts @ line 103 in content.php for "content plugin"
and near 218 in view.html.php in component.
@nibra and I spent a fair amount of time discussing / tracking this down.
The text was updated successfully, but these errors were encountered: