Smartsearch: collation issue when searching in back-end index#8307
Smartsearch: collation issue when searching in back-end index#8307rdeutz merged 2 commits intojoomla:stagingfrom
Conversation
|
I have tested this item ✅ successfully on bf3c49e This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8307. |
|
I have tested this item ✅ successfully on bf3c49e This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8307. |
|
2 good test: RTC This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8307. |
|
@infograf768 if you just remove the like rather than the whole query does it work? Iirc you can't use LIKE for a database date time object. And it would still allow filtering by date for those who want it (sorry travelling on a train so can't test myself to see if it would work) |
|
@wilsonge |
|
I meant we do not need |
|
oh, you mean just letting `' OR l.indexdate'). Hmm... |
|
I mean like OR l.indexdate = $search yeah I'm not sure either. But if there is a use case at least it would still work? |
|
If someone hacks core admin it is his/her problem |
|
It's not a hack! This is a thing that can be used at the moment? |
|
The only way to keep a search by date is to preg_match $search to make sure it does not contain unicode characters. Would you be satisfied with this? |
|
This PR has received new commits. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8307. |
|
I have tested this item ✅ successfully on 00f2a62 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8307. |
|
I have tested this item ✅ successfully on 00f2a62 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8307. |
Smartsearch: collation issue when searching in back-end index
|
Thank you all for your assistance Thanks and Regards |
This solves #8298
Create an article with title in Hebrew

ביו
then purge and run smartsearch indexer (I used snowball as indexer)
When done, enter the title in the search box (still in the indexer page):
we get
the issue comes from the fact that the search query includes the
indexdatewhile it is anyway useless here.See: http://stackoverflow.com/questions/18629094/illegal-mix-of-collations-for-operation-like-while-searching-with-ignited-data for explanation.
After getting the 500, logout, login again and patch.

try again.
You should get :