<div dir="ltr"><div><div><div>The omission of the &quot;-s&quot; attribute does not lead to search behavior but instead to Diatheke trying to open the book/chapter/verse specified by the -k argument. So, it seems safe to say, there is no real concept of a &quot;default&quot; search type.<br><br></div>It would make sense to say there is a default if there was a way to search without specifying that argument, but such does not appear to be the case. For that behavior we would have to reengineer diatheke to have sub commands in the same way that git, svn, apt-get, yum/dnf, etc have. But it does not currently have that.<br><br></div>So the issue is not that the search is wrong, but the concept of &quot;default&quot; search doesn&#39;t even exist for the diatheke command.<br><br></div>--Greg<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 27, 2017 at 2:46 PM, David Haslam <span dir="ltr">&lt;<a href="mailto:dfhmch@googlemail.com" target="_blank">dfhmch@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&quot;Something not quite right in the state of Denmark ...&quot;<br>
<br>
diatheke -b ESV -k Merodach<br>
gives no matches!<br>
<br>
diatheke -b ESV -s lucene Merodach<br>
gives 5 matches.<br>
<br>
The actual instances are as follows: (omitting the references)<br>
2 matches to &quot;Evil-merodach&quot;<br>
2 matches to &quot;Merodach-baladan&quot;<br>
1 match to &quot;Merodach&quot;<br>
<br>
diatheke syntax help includes:<br>
<br>
Valid search_type values are: phrase (default), regex, multiword, attribute,<br>
lucene, multilemma.<br>
<br>
If the default search type really is &quot;phrase&quot;, surely one ought to expect<br>
its omission to be equivalent to specifiying it explcitly?<br>
<br>
diatheke -b ESV -s phrase Merodach<br>
gives 5 matches<br>
<br>
Is it that the syntax help is lying when it tells us that search type phrase<br>
is (default) ?<br>
<br>
Observations made with diatheke.exe version 4.7 as supplied with Xiphos<br>
4.0.4 (Windows).<br>
<br>
Best regards,<br>
<br>
David<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://sword-dev.350566.n4.nabble.com/diatheke-search-type-default-tp4656833.html" rel="noreferrer" target="_blank">http://sword-dev.350566.n4.<wbr>nabble.com/diatheke-search-<wbr>type-default-tp4656833.html</a><br>
Sent from the SWORD Dev mailing list archive at Nabble.com.<br>
<br>
______________________________<wbr>_________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer" target="_blank">http://www.crosswire.org/<wbr>mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</blockquote></div><br></div>