User tests: Successful: Unsuccessful:
Pull Request for Issue #35861
By default Smart Search searches form the start of the word. This PR adds the option to search for a phrase in the middle of a word.
Checkout this PR
Create a menu item with menu item type Smart Search -> Search
Go to Components -> Smart Search -> Index
Open the options and set the Wildcard option in the tab "Smart Search" to On
Create an article with some long words
Go to Components -> Smart Search -> Index and start the indexer
In the frontend search for a phrase in the middle of the word
No search results as search terms have to start from the beginnen of a word.
Search phrase in the middle of a word is found.
Yes
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_finder Language & Strings Front End |
Labels |
Added:
Language Change
?
|
The % is enabled at the end by default.
I believe this is wrong for the reasons I commented in the original issue. Plus if you enable % at the start it should also be enabled at the end.
By default the option is disabled!
I think this feature is very useful when searching in a content-rich Joomla website. The option is disabled by default, so existing websites won't be affected. Maybe add a notice to inform website administrators of the slower query?
just use com_search then
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-10-20 09:37:07 |
Closed_By | ⇒ | RickR2H |
Closing PR because of wildcard search was left out by design en for reasons stated in the documentation
I believe this is wrong for the reasons I commented in the original issue. Plus if you enable % at the start it should also be enabled at the end.