Created
April 4, 2017 10:06
-
-
Save anonymous/609f82a065f3d0ac6b1d077073be286f to your computer and use it in GitHub Desktop.
some description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# directory with txt files | |
INPUT=./testinput | |
LOWER=krankenkassen | |
UPPER=Krankenkassen | |
mkdir ${INPUT} | |
# store one lowercase word | |
echo ${LOWER} > ${INPUT}/lower.txt | |
# who am i | |
omindex --version | |
quest --version | |
# clean up database 8) | |
rm -rf testdb | |
# create omega index, url doesn't matter | |
omindex --verbose --db=testdb --url=/bla ${INPUT} | |
# query database for word in Upper and lower case | |
quest --db=testdb ${UPPER} | tee test-nostem.out | |
quest --db=testdb ${LOWER} | tee -a test-nostem.out | |
# should have been fine. | |
# now ... clean up the database 8) | |
rm -rf testdb | |
# create omega index, use german stemmer | |
omindex --verbose --db=testdb --url=/bla --stemmer=german ${INPUT} | |
# try again and query database for word in Upper and lower case | |
quest --db=testdb ${UPPER} | tee test-stem.out | |
quest --db=testdb ${LOWER} | tee -a test-stem.out | |
# the 'lower case' one should fail. which is weird. | |
diff test-nostem.out test-stem.out | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And the output: