PHilologicallY Linguistic LegwOrk.
Initial build:
- docker for linux (https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/) OR docker-toolbox for windows(https://www.docker.com/products/docker-toolbox) is required
- clone or download the files from the github repository
-
unzip the zip file (if downloaded the file)
-
In linux: open terminal and navigate to the unzipped directory with cd command OR In Windows: open up the docker quickstart terminal and navigate to the unzipped directory with cd command
-
run docker-compose up command
- A new or initial build is gonna take the longest of around 20 - 30 mins, since the build downloads the data from the http://www.thelatinlibrary.com/ and then generate FTS tables for them
- The build will be done once the terminal says debugger is active!
- open a browser and enter the url: http://192.168.99.100:5000/
- The search engine works for any number of words and sentences
- word*: in the search gets all the documents where the 'word' is a prefix. * can be used multiple times like word1* word2* word3* in the search bar.
- ^word: this search gets all the documents with sentences where 'word' is the first word. can only be used once in a search and ^word*: this gets all the documents where is 'word' is a prefix of the first word in a sentence
- the search author:name word searches for the documents where the authored by the specified author and contains the specified word
- author:name word* can also be used
- Also author:name ^word* can also be searched
- word1 OR word2: this kind of search results all the documents which contain either word1 or word2
- The NEAR clause can be used to search for non continous words. For example, two words can have any number of words and characters between them an estimate of that number can be used to perform searches as well. word1 NEAR/x word2 where x is the estimated number of characters between word1 and word2.
NEAR clause can be used multiple times through the query.