J3 Issue ?
avatar N6REJ
N6REJ
29 Aug 2017

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

image
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.

avatar N6REJ N6REJ - open - 29 Aug 2017
avatar joomla-cms-bot joomla-cms-bot - change - 29 Aug 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Aug 2017
avatar AlisonAMG
AlisonAMG - comment - 29 Aug 2017

And thank you guys so much for looking at this.

avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Aug 2017
Category com_search
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Aug 2017
Status New Discussion
avatar brianteeman
brianteeman - comment - 29 Aug 2017

since exact can't be used with multiple SINGLE words.

why not?

avatar nibra
nibra - comment - 29 Aug 2017

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 |

avatar brianteeman
brianteeman - comment - 29 Aug 2017

Thanks for the explanation

avatar brianteeman
brianteeman - comment - 29 Aug 2017

For reference smart search aka com_finder searches for whole words

avatar N6REJ
N6REJ - comment - 30 Aug 2017

@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

avatar brianteeman
brianteeman - comment - 30 Aug 2017

Sorry but I don't understand your comment

avatar N6REJ
N6REJ - comment - 31 Aug 2017

@brianteeman its ok, lets worry about that on another issue/pr
for now lets worry about searchphrase

avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar tonypartridge
tonypartridge - comment - 1 May 2018

@nibra can’t we do this with OR statements? If we explode on a space?

avatar nibra
nibra - comment - 2 May 2018

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.

avatar tonypartridge
tonypartridge - comment - 2 May 2018

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.

avatar Hackwar
Hackwar - comment - 21 May 2018

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:

  • #20185 [4.0] Removing artificial sharding from com_finder
  • #20384 [4.0] Removing terms tuples from com_finder
  • #20391 [4.0] Using language specific tokeniser and stemmer for com_finder
avatar brianteeman
brianteeman - comment - 21 May 2018

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.

avatar brianteeman brianteeman - change - 21 May 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-05-21 08:33:18
Closed_By brianteeman
Labels Added: J3 Issue
avatar brianteeman brianteeman - close - 21 May 2018

Add a Comment

Login with GitHub to post a comment