-
Notifications
You must be signed in to change notification settings - Fork 176
SQL related question #100
Comments
oh yea you're totally right. It should be |
Can I interest either of you in the fame and glory that come with sending a pull request for this change? |
This will search for complete words. When inserted, text is tokenized and MATCH can perform token or token prefix matching. I think it's better to just remove fts and continue using
Tempting, indeed. |
Thats true. We can prefix match but not match in the middle of a word. So typing We could be clever and tokenize based off of camel casing to still use an fts table for those cases. I guess the question is do we care about matching things like |
No. But |
if we tokenize the input string on camel case then the query becomes I dont think we can build actual sqlite tokenizers through the exposed android sqlite stuff, but we can tokenize from the kotlin side and this should all theoretically work.
|
I think that was the original motivation for FTS so 👍
…On Fri, Jun 1, 2018 at 9:06 AM Alec Strong ***@***.***> wrote:
if we tokenize the input string on camel case then the query becomes MATCH
'con AND la' which would work.
I dont think we can build actual sqlite tokenizers through the exposed
android sqlite stuff, but we can tokenize from the kotlin side and this
should all theoretically work.
ConstraintLayout goes into fts as constraint layout
ConLa goes into search as con la
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#100 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEEEZgg2lCylDw1r7ymgHmxsmVh2sipks5t4TxTgaJpZM4UUzRv>
.
|
As far as I understand fts4 gives no benefit when LIKE is used.
The text was updated successfully, but these errors were encountered: