Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL FTS 5
#11
(May-19-2023, 06:16 AM)Gribouillis Wrote: earching for documentation about this I came across the duckdb database
Thanks, never heard of it either:
https://duckdb.org/2021/01/25/full-text-search.html
Even mariaDB etc... support FTS5.
Unfortunately the decision which DB to use, is not mine.
Some very learned people will meet and tell me tomorrow (hopefully).

As for the documentation, maybe the fact that FTS5 is relatively unknown,
causes the lack of hands-on examples. First you think something is impossible,
the next day you find out there is a way, resulting in loss of time.
I guess that is part of the learning curve.

e.g. what are the consequences of ... using fts5 (filename,data,register, tokenize='trigram') ...?
Should I define every table with " tokenize='trigram'" when I want to use like. Can I convert existing 'normal' tables ... etc etc..;
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply
#12
Hi,
This seems to be a more organised "exposé".
https://runebook.dev/en/docs/sqlite/fts5?
But it copies examples from other sources.

If somebody has the time, what is the difference between LIKE and GLOB ?
As I said before, I got LIKE to work via the trigram extension, it behaves like python's 'if ... in <string>' .
But many things remain vague or "unspoken" about this feature.
Paul
Gribouillis likes this post
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply
#13
I wonder why they keep saying that the underscore is the codepoint 96. For me it is 95. I think it is an error in the SQLITE documentation
>>> print(chr(95))
_
>>> print(chr(96))
`
Reply
#14
DPaul Wrote:Where can I find a complete and definitive overview of FTS 5 syntax, compatible with python of course.
Perhaps by searching the References and bibilographies of papers on google scholar, the complete reference to FTS5 can be found, for example, from this list: https://scholar.google.com/scholar?hl=en...+FTS5&btnG=
or from NIST
Reply
#15
(May-20-2023, 01:45 PM)Larz60+ Wrote: Perhaps by searching the References and bibilographies of papers on google schola
Looks interesting!
A lot of stuff though ... Confused
Thanks,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020