Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7887357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:33:32+00:00 2026-06-03T05:33:32+00:00

I enabled fts in sqlite for iphone and tried this and works, although very

  • 0

I enabled fts in sqlite for iphone and tried this and works, although very slow:

SELECT field FROM table_fts WHERE replace(replace(replace(replace(replace(lower(field), 'á','a'),'é','e'),'í','i'),'ó','o'),'ú','u') LIKE replace(replace(replace(replace(replace(lower('%string%'), 'á','a'),'é','e'),'í','i'),'ó','o'),'ú','u')

But it does not work when I want to use MATCH, it does not bring me results and there is no error

SELECT field FROM table_fts WHERE replace(replace(replace(replace(replace(lower(field), 'á','a'),'é','e'),'í','i'),'ó','o'),'ú','u') MATCH replace(replace(replace(replace(replace(lower('string'), 'á','a'),'é','e'),'í','i'),'ó','o'),'ú','u')

Is there any error or is there any other approach where I can make a tilde insensitive search?. I looked answers in the web with no success.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:33:33+00:00Added an answer on June 3, 2026 at 5:33 am

    Two approaches:

    First, you can violate normal-form and add columns to your table containing ASCII-only representation of your searchable fields. Furthermore, before doing a search against this secondary search column, you also remove international characters from the string that being searched for, too (that way you’re looking for ASCII-only string in a field with the ASCII-only representation).

    By the way, if you want a more general purpose conversion of international characters with ASCII, you can try something like:

    - (NSString *)replaceInternationalCharactersIn:(NSString *)text
    {    
        NSData *stringData = [text dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
    
        return [[[NSString alloc] initWithData:stringData encoding:NSASCIIStringEncoding] autorelease];
    }
    

    Second, you could presumably use sqlite3_create_function() to write your own function (that presumably invokes a permutation of the above) that you can use right in your SQL statements themselves. See the SQLite documentation.

    Update:

    By the way, given that you’re doing FTS, the sqlite3_create_function() approach is probably not possible, but it strikes me that you could either do FTS on the field containing the ASCII-only string, or write your own tokenizer that does something along those lines.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I enabled the nszombie in xcode 4.2. (from product->editScheme) I have got this message:
I enabled the extension on wamp ( Screenshot ) but I still get this
Thus for used ajax enabled wcf services to get records from DB and display
I have enabled GZip compression via web.config with many helps from another question: Enable
I have mod rewrite enabled to remove all page extentions.... This is done in
enabled nszombies Is there any additional information anyone can see in this debug log
I enabled IntelliTrace on an ASP.NET MVC2 app that seems to working very well
I have these options enabled, as shown in this screenshot: I also have the
I had enabled telnet client feature on Windows 2008, and tried to launch it
#+FollowSymLinks must be enabled for any rules to work, this is a security #requirement

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.