Re: search issue in 2TGreek
Karl Kleinpaste <[email protected]> Tue, 15 Apr 2025 08:31:40 -0400
| Newsgroups | gmane.comp.literature.sword.devel |
|---|---|
| Message-ID | <[email protected]> |
On 4/14/25 23:03, Fred wrote: > do I need to open a Sword bug? If one is needed, I'm happy to do so. But further experimentation using diatheke was educational. Now I have more understanding but less explanation. And the difference is clearly happening in Sword, not Xiphos. Xiphos' sidebar search, in the lucene case, reworks the search request to convert each space-delimited TERM to +TERM so that lucene search always asks for a logical "and" of the TERMs offered. "and" is the normal use case for simple sidebar search. Xiphos does this even when there's just one word, which should (hm, "should") make it redundant but harmless. I've found that the difference is found between diatheke -b 2TGreek -s lucene -k παντοκρατωρ and diatheke -b 2TGreek -s lucene -k +παντοκρατωρ The latter returns nothing, the former returns the expected set. The same holds true in e.g. TischMorph and TR. I looked at the difference between Xiphos' sidebar and advanced search to confirm this: Advanced search does no '+' favors, it just takes the user's input literally. So when I do advanced search for παντοκρατωρ, I get a reasonable set, but when I do so using +παντοκρατωρ, I get nothing. Troy, can you offer an explanation for why (some) single term searches have no results when prefixed with '+'? This doesn't happen in all cases, e.g. I can search for "jesus" alone in any English bible, with or without leading '+', and get the same results. diatheke -b NET -s lucene -k +jesus | tr ';' '\n' | wc -l 1157 diatheke -b NET -s lucene -k jesus | tr ';' '\n' | wc -l 1157 diatheke -b NASB -s lucene -k +jesus | tr ';' '\n' | wc -l 948 diatheke -b NASB -s lucene -k jesus | tr ';' '\n' | wc -l 948 diatheke -b KJV -s lucene -k +jesus | tr ';' '\n' | wc -l 943 diatheke -b KJV -s lucene -k jesus | tr ';' '\n' | wc -l 943 All that said, I still have no explanation at all for how some results in Matt, Mark, 1Pet etc are being obtained for regex or phrase searches. _______________________________________________ sword-devel mailing list: [email protected] http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page