question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't search query correctly with non-ASCII chars

See original GitHub issue

Issue Summary

Can’t search query correctly with non-ASCII chars.

Steps to Reproduce

  1. Make query which has non-ASCII chars name or description
  2. Search with non-ASCII chars

e.g.

There is a query which has non-ASCII chars ユーザ.

all_queries

Search with ユーザ, then no quries in the result.

search_query1

When I search with ユー, then hit correctly.

search_query2

I guess that Query.search(in #2041) has changed this behavior. But I have no idea what we should fix it with keeping full text search feature.

Technical details:

  • Redash Version: master
  • Browser/OS: Version 67.0.3396.87 (Official Build) (64-bit)
  • How did you install Redash: Docker

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
arikfrcommented, May 12, 2019

@deecay adding an option to enable simpler search sounds good to me. Considering the global usage of Redash, I expect this to be popular enough to put in Organization Settings UI.

0reactions
deecaycommented, May 12, 2019

Hi @jezdez,

Could we bring back the naive and slow LIKE search as an option? Maybe an ENV variable LEGACY_FULL_TEXT_SEARCH or something to switch between two ways of searching?

For me, being able to search in multi-byte is far more critical than having faster and more modern tsvector textsearch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Find non-ASCII characters in varchar columns using SQL Server
Here is a solution for the single column search using PATINDEX. It also displays the StartPosition, InvalidCharacter and ASCII code.
Read more >
How to Fix Non-ASCII Characters in a URL - Sitechecker
Open the code editor. Press Ctrl + F to run a Find or Search command. Enter [^\x00-\x7F]+ in the search box. Choose “ ......
Read more >
How to check for Non-Ascii Characters - DBA Stack Exchange
I tried using PATINDEX and have run into the following issue. Checking the lower range worked correctly. SELECT * FROM mbrnotes WHERE PATINDEX(' ......
Read more >
AD LDS - LDAP query with non ascii character gets re ...
AD LDS - LDAP query with non ascii character gets re-interpreted and returns incorrect results. The results contain both results where sn ...
Read more >
How to replace ASCII special characters in SQL Server
There are some punctuation marks (esp. the em dash, which is "& #151;" in HTML) and letters with diacritical marks in other languages...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found