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.
Return ONLY matching whole words when set to any &/or all since exact can't be used with multiple SINGLE words.
systeminfo-2017-08-29T02-34-30+00-00.txt
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.
Labels |
Added:
?
|
Category | ⇒ | com_search |
Status | New | ⇒ | Discussion |
since exact can't be used with multiple SINGLE words.
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
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
A blog layout is sorely needed imo
Sorry but I don't understand your comment
@brianteeman its ok, lets worry about that on another issue/pr
for now lets worry about searchphrase
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.
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 notifications@github.com, 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:
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-05-21 08:33:18 |
Closed_By | ⇒ | brianteeman | |
Labels |
Added:
J3 Issue
|
And thank you guys so much for looking at this.