This is a first proof of concept for using a sqlite3 backend (see also #3). This PR is based on the biblib branch (#1), but it can adapted if we decide against changing the bibtex parser.
Full text search (FTS5) is disabled by default in sqlite3. These are the steps I carried out for enabling it on my mac:
Update sqlite3 with homebrew: brew reinstall sqlite3 --with-fts5
Use the homebrew python3 installation /usr/local/opt/python3/bin/python3 ./bibsearch.py
I haven't tried out how the installation would look like in a linux system (probably very distro dependent).
I see that this could be an important drawback, but we just gained a powerful search engine with only a couple lines of code. We can even tell it to use the porter stemmer for matching terms (not activated in this PR).
This is a first proof of concept for using a sqlite3 backend (see also #3). This PR is based on the biblib branch (#1), but it can adapted if we decide against changing the bibtex parser.
Full text search (FTS5) is disabled by default in sqlite3. These are the steps I carried out for enabling it on my mac:
brew reinstall sqlite3 --with-fts5
/usr/local/opt/python3/bin/python3 ./bibsearch.py
I haven't tried out how the installation would look like in a linux system (probably very distro dependent).
I see that this could be an important drawback, but we just gained a powerful search engine with only a couple lines of code. We can even tell it to use the porter stemmer for matching terms (not activated in this PR).