-
Notifications
You must be signed in to change notification settings - Fork 568
FTS3/4 MATCH not supported? #35
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
Comments
Hi Nappy, We've added a test that exercises your example of the full text search issue you reported. Have you resolved your issue? Our example that passes can be found here: |
I am facing similar issue. Query with MATCH not returning any results: Query with LIKE is providing Results: |
@nikhilmahesh were you able to run the test case that @developernotes mentioned in the earlier post? Does your example work if you create using |
@sjlombardo : I am able to do it with FTS5 instead. |
@nikhilmahesh I'm glad to hear that fts5 worked for you. I don't think the tokenizer should have any impact on the behavior in this case, since each column is a single term and it shouldn't affect the substring MATCH functionality. Since it sounds like you are using the C API directly, I have a few other questions:
|
In the sqlcipher documentation I read, that one should favor FTS over LIKE for performance. I wonder why I get the following error. I reduced my real world example to this simplified case:
Schema:
CREATE VIRTUAL TABLE sites USING fts4(domain, url, title, meta_keys, body)
CREATE TABLE keywords (keyword TEXT)
Query:
SELECT keyword FROM keywords INNER JOIN sites ON sites.title MATCH keywords.keyword
I get a info.guardianproject.database.sqlcipher.SQLiteException: "SQL logic error or missing database".
info.guardianproject.database.sqlcipher.SQLiteQuery.native_fill_window(Native Method)
info.guardianproject.database.sqlcipher.SQLiteQuery.fillWindow(SQLiteQuery.java:73)
info.guardianproject.database.sqlcipher.SQLiteCursor.fillWindow(SQLiteCursor.java:290)
info.guardianproject.database.sqlcipher.SQLiteCursor.getCount(SQLiteCursor.java:271)
android.database.CursorWrapper.getCount(CursorWrapper.java:51)
The text was updated successfully, but these errors were encountered: