[sword-devel] The error handling (diatheke/libsword)
ZdPo Ster
zdposter at gmail.com
Fri Feb 9 06:36:22 EST 2024
Hello,
I built the sword on windows with cmake&MSVC&vcpkg without clucene (vcpkg
does not offer it and I was not able to compile out of box. It seems it has
not been developed actively for 14 years).
I found some unexpected behaviours/messages from user perspective:
1. f:\Projects\Community\sword\build.msvc\utilities\Release\mkfastmod.exe
KJV cause "error: KJV does not support a search framework" which for me
indicate problem with module, but IMO problem is that mkfastmod is without
clucene support. When I use mkfastmod.exe from xiphos, the index is created
without problem.
2. f:\Projects\Community\sword\build.msvc\utilities\diatheke\Release\diatheke.exe
-s lucene -b KJV -k "lemma:G1344"
I got output: Entries containing "lemma:G1344"-- none (KJV). IMO proper
output would be message that libsword was build without clucene, so option
"attribute" should be used....
3. f:\Projects\Community\sword\build.msvc\utilities\diatheke\Release\diatheke.exe
-b KJV -s attribute -k "Word//Lemma./G1344/" produces
Entries containing "Word//Lemma./G1344/"-- Matthew 11:19Matthew 12:37 ;
Luke 7:29 ; Luke 7:35 ; Luke 10:29 ; Luke 16:15 ; Luke 18:14 ; Acts 13:39 ;
Romans 2:13 ; Romans 3:4 ; Romans 3:20 ; Romans 3:24 ; Romans 3:26 ; Romans
3:28 ; Romans 3:30 ; Romans 4:2 ; Romans 4:5 ; Romans 5:1 ; Romans 5:9 ;
Romans 6:7 ; Romans 8:30 ; Romans 8:33 ; I Corinthians 4:4 ; I Corinthians
6:11 ; Galatians 2:16 ; Galatians 2:17 ; Galatians 3:8 ; Galatians 3:11 ;
Galatians 3:24 ; Galatians 5:4 ; I Timothy 3:16 ; Titus 3:7 ; James 2:21 ;
James 2:24 ; James 2:25 ; Revelation of John 22:11 ; -- 36 matches total
(KJV)
after first reference there is missing field separator (" ; ")
4. When I run search with clucene: "F:\Program
Files\Crosswire\xiphos\bin\diatheke.exe" -b KJV -s lucene -k "lemma:G1344"
I got unsorted results:
Entries containing "lemma:G1344"-- Romans 8:30Romans 3:28 ; Romans 6:7 ;
Galatians 2:16 ; Acts 13:39 ; Romans 3:20 ; Romans 5:9 ; I Corinthians 4:4
; James 2:25 ; Luke 7:35 ; Romans 8:33 ; Matthew 12:37 ; Romans 3:24 ;
Romans 3:30 ; Romans 4:2 ; Galatians 3:24 ; Galatians 5:4 ; Titus 3:7 ;
James 2:24 ; Luke 7:29 ; Luke 10:29 ; Romans 2:13 ; Romans 3:26 ; Romans
4:5 ; Romans 5:1 ; Galatians 2:17 ; Galatians 3:11 ; James 2:21 ;
Revelation of John 22:11 ; Matthew 11:19 ; Luke 16:15 ; Luke 18:14 ; Romans
3:4 ; I Corinthians 6:11 ; Galatians 3:8 ; I Timothy 3:16 ; -- 36 matches
total (KJV)
This is not an error, but is it possible to have sorted results as for
"attribute" search?
5. When I run a search in a non-existing module (e.g. diatheke.exe -b
KJVS -s lucene -k "lemma:G1344") there is no output. IMO it would better if
there is message like "Module KJVS not found"
Anyway: thank you very much for your work. I hope this suggestion helps to
improve The Sword project.
God bless you,
Zdenko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20240209/a93de65f/attachment.htm>
More information about the sword-devel
mailing list