Go back app

Table of Contents

Dhamma Full Text Search ToolInfoLicenseAcknowledgementsDownload for off-line useBuild Your Own Full Text Search DatabaseHere, for example, we will build a SQLite3 FTS5 powered full text search app:Step 1: gather documents into one place`If you do not remove blank files and empty folders before indexing:To remove empty directories and blank files (0 byte)Step 2: convert them into plain .txt files, perform "data clean" etcStep 3: create an indexed databaseStep 4: search UI or CLI for the indexed databaseAppendix: Data file listFeedback

Dhamma Full Text Search Tool

Info

License

Some materials used in this app, such as the PTS Pali English dictionary, Roman pāḷi tipiṭaka text (VRI Roman version), etc... are for free distribution and non-commercial only.

Thus, this project should be released under this license:

Acknowledgements

 

PTS Pali-English Dictionary buddhadust_pts_ped.utf8.txt is obtained from Buddhadust

See the full file list in README.html

NameSource
Pāḷi tipiṭaka textDivided into 2662 files by https://tipitaka.app (used digital pāḷi tipiṭaka text VRI version)
Pāḷi Dictionary+ PTS PED buddhadust_pts_ped.utf8.tx from Buddhadust

+ Siongui/data Github repository:
vi-su-Pali_Viet_Abhi_Terms.tsv
vi-su-Pali_Viet_Dictionary.tsv
vi-su-Pali_Viet_Vinaya_Terms.tsv
Pa-Auk Meditation ManualSome Pa-Auk Forest Monastery Meditation Manual eBooks see file list
Tam Tạng Pāḷi Việt A Vietnamese translation of tipiṭaka project (currently it is not finished all yet) fromTam Tang Pali Viet, most files are retrieved from: https://tamtangpaliviet.net/TTPV/TTPV_BanDich.htm
Other databases Some other miscellaneous databases like our personal e-books, Webster's Revised Unabridged Dictionary (1913) (this version is now in public domain) etc... which are big in file-size and may not be available on this online version.

Download for off-line use

Build Your Own Full Text Search Database

In general, to build a full text search app, you need to do these steps:

Here, for example, we will build a SQLite3 FTS5 powered full text search app:

Step 1: gather documents into one place`

If you do not remove blank files and empty folders before indexing:

To remove empty directories and blank files (0 byte)

The "." is current directory.

The first ones with -print are to list (dry run) items only, if you are OK with it, then use the next commands with the -delete option. It will delete the matched items.

Step 2: convert them into plain .txt files, perform "data clean" etc

Step 3: create an indexed database

After you have successfully converted all of your documents into plain text files, you now can use Apache Lucene to create an index database, or in this case, we simply use SQLite3 FTS5 to do so:

In the Step 2 above, the converted txt files may contain broken lines, use prepare-textdata.py to fix them (if you have not yet done):

After that you can index them:

Step 4: search UI or CLI for the indexed database

Congrats! Nearly done! :)

Now simply place your indexed databases to the directory data. And update their paths in the index.php file. Find the follow line and update it accordingly to your cases.

Appendix: Data file list

 

Feedback

May we all be able to understand and practise the Dhamma correctly, quickly. May you all be well and happy!