The example here only covers short text fields like titles — does anyone know if it performant for full body search of long documents?
In PostgreSQL, powerful Full Text Search is available out of the box
11–20 of 20 posts
Re: In PostgreSQL, powerful Full Text Search is available out of the box
#12PostgreSQL FTS is mostly great - I wrote a tutorial on using it to build faceted search with Django a few years ago: https://simonwillison.net/2017/Oct/5/django-postgresql-facet... It does have one surprising limitation: it calculates relevance based on just the current row, rather than being able to take statistics across the whole corpus into account. Most search engines use TF/IDF or BM25 for relevance calculation…
Ahhh. That's what's SQLite's "bm25()" function is for.
Was white listing the SQLite FTS functions a few days ago for DBHub.io (eg so people can use them), but don't really understand (yet) how most of them are actually used. Some day I'll get around to learning about them properly. :)
Re: In PostgreSQL, powerful Full Text Search is available out of the box
#13The example here only covers short text fields like titles — does anyone know if it performant for full body search of long documents?
Yes, it works great for that.
Re: In PostgreSQL, powerful Full Text Search is available out of the box
#14I read these articles and am always tempted, but I've found they often don't do well with Chinese, Japanese, Korean or other non-latin languages. I understand that isn't the focus for most people but it's very hard to find good data/information on how to best support these languages.
Re: In PostgreSQL, powerful Full Text Search is available out of the box
#15The example here only covers short text fields like titles — does anyone know if it performant for full body search of long documents?
[0] https://www.reddit.com/r/programming/comments/12yhhcg/commen...
Re: In PostgreSQL, powerful Full Text Search is available out of the box
#16The example here only covers short text fields like titles — does anyone know if it performant for full body search of long documents?
Re: In PostgreSQL, powerful Full Text Search is available out of the box
#17I read these articles and am always tempted, but I've found they often don't do well with Chinese, Japanese, Korean or other non-latin languages. I understand that isn't the focus for most people but it's very hard to find good data/information on how to best support these languages.
I find it dishonest to call it "full text search" whereas it's actually just "English/Indo-European full text search" that uses language-specific features to achieve its goals.
Instead of pretending to have solved the string searching problem by using "language hacks", I'd really like see an open source database that provides easy to use interfaces to suffix trees instead.
The even more infuriating thing is that apparently some databases actually do have suffix tree implementations, but because of assumptions that the data is English/European, other languages work half-assedly on it.
Imagine i18n implications for projects that are based on them. And the users would have no clue how f*cked up things are.
Re: In PostgreSQL, powerful Full Text Search is available out of the box
#18Re: In PostgreSQL, powerful Full Text Search is available out of the box
#19I've had problems with performance over large data sets, maybe 1M records and a few I've never implemented full text search using a dedicated database so maybe 1M is too much to ask for.
Re: In PostgreSQL, powerful Full Text Search is available out of the box
#20I read these articles and am always tempted, but I've found they often don't do well with Chinese, Japanese, Korean or other non-latin languages. I understand that isn't the focus for most people but it's very hard to find good data/information on how to best support these languages.
+1 I find it dishonest to call it "full text search" whereas it's actually just "English/Indo-European full text search" that uses language-specific features to achieve its goals. Instead of pretending to have solved the string searching problem by using "language hacks", I'd really like see an open source database that provides easy to use interfaces to suffix trees instead. The even more infuriating thing is that a…