-
Notifications
You must be signed in to change notification settings - Fork 2
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
As a frontend user, I want smart quotes to be converted to normal quotation marks in order to get proper results in the search field. #789
Comments
It is working in English! Not sure it's working properly with Arabic script though... the results I'm getting for this two word phrase ("تعطل شغله") are returning responses with just one of the words - is this expected? |
@richmanrachel I suspect that is a flaw with how I implemented the arabic to judaeo-arabic search! The OR syntax I'm using must not be playing nicely with the phrase. It looks like we get the same behavior in production. Do you want to open a bug issue to track it? While I revisit maybe I can also tweak the boosting so arabic matches get higher priority. side note: when I was testing just now, I clicked into one of the records with a Judaeo-Arabic match and then tried to ctrl-f for the search term! which of course doesn't work (even if the whole phrase was there). Kind of a weird experience |
@rlskoeser - good idea. Sorry we're having to introduce you to the inequalities of the RTL internet! |
@rlskoeser - On the test site, I tried a two-word phrase in Hebrew script (״שגל בית״) and it's also returning phrases with only one of the two words. It looks like the quotes are reverting to smart quotes, but I can't tell... |
@richmanrachel thanks for testing more, looks like this is more complicated than I thought! I probably need to look again at the queries being generated in those cases and probably add some automated tests with hebrew and arabic phrases (thanks for the examples). Can you tell if phrase searching is working in production with straight quotes and RTL text? That is, is this a new problem or is it likely related to the other RTL search woes? |
wow! two different things happening here:
|
@rlskoeser - how strange! I tested the phrase "כדמת אלדאר" with unicode quotes and it worked on the production and test sites properly. |
@richmanrachel I pushed some changes to the test site, but now I'm not sure it's working at all for hebrew/arabic... the two test cases you shared before aren't returning any results for me. Want to test a bit and see if you can figure anything out about what's going on? |
@richmanrachel I can't get exact phrase searches to work at all with Arabic content with straight quotes, either on the test site or in production. Does it work at all for you? If it doesn't, then that is a separate problem from this one and we should open a new bug issue. |
@rlskoeser - no, the Arabic content still is not working with quotations at all. I'll open a new bug report. |
Is your feature request related to a problem? Please describe.
Keyboard conversions of smart quotation marks are inhibiting users from getting proper strings of words in front end searches.
Describe the solution you'd like
The code to automatically convert smart quotation marks to normal quotation marks.
Additional context
Both MR and RR are having trouble with this on both desktop and mobile.
The text was updated successfully, but these errors were encountered: