<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Sorry Chris, I only write this followup to the sword-devel thread.<br>
<br>
<br>
<div class="moz-forward-container"><br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject:
</th>
<td>Re: [sword-devel] [jsword-devel] Stem searching</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date: </th>
<td>Wed, 11 Jul 2012 16:24:50 +0200</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">From: </th>
<td>Troy A. Griffitts <a class="moz-txt-link-rfc2396E" href="mailto:scribe@crosswire.org"><scribe@crosswire.org></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Reply-To:
</th>
<td>SWORD Developers' Collaboration Forum
<a class="moz-txt-link-rfc2396E" href="mailto:sword-devel@crosswire.org"><sword-devel@crosswire.org></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">To: </th>
<td>SWORD Developers' Collaboration Forum
<a class="moz-txt-link-rfc2396E" href="mailto:sword-devel@crosswire.org"><sword-devel@crosswire.org></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Sorry for all the typos last night. Was running on coffee.
So, I spent a little time this afternoon adding in the index field
discussed in this message. It's committed in SVN. You'll need to
rebuild your indexes on a module to take advantage of it. Nothing
should be disturbed if you don't, but you won't have the new field
available.
The field is called 'morph'. You can see it in action on swordweb:
<a class="moz-txt-link-freetext" href="http://crosswire.org/study/parallelstudy.jsp">http://crosswire.org/study/parallelstudy.jsp</a>
At the top, under 'Presets' click 'NT Scholar'
Click on any word in KJV, TR, or Tregelles.
You'll notice a few new options now. You can search for the lemma with
any morphology-- how things have worked for a long time.
Or you can now search for the lemma with the same morphology as the word
you clicked-- this uses the new morph index field.
Once you've done a search, you can see the search string that was built
and can play around with ? and * on the morph, or any of the other
lucene functions you find here:
<a class="moz-txt-link-freetext" href="http://lucene.apache.org/core/3_6_0/queryparsersyntax.html">http://lucene.apache.org/core/3_6_0/queryparsersyntax.html</a>
One caveat: '-' is common in Robinson's morph codes and needs to be
escaped; it means 'without' in lucene search syntax. bummer.
Have fun, let me know what you think.
Troy
On 07/11/2012 03:17 AM, Daniel Owens wrote:
> Please let me know if there is anything non- or semi-technical I can
> do (testing, etc.) to help with this. I was surprised to learn that BW
> (and Logos 4, I would add) uses such arcane syntax, but it really is
> powerful once you learn it. I wonder how many users simply do not make
> use of the powerful tools at their fingertips because they are
> intimidated by the syntax. The only person I know who uses this to
> great effect is a PHP programmer with a computer science degree...
>
> Daniel
>
> On 07/10/2012 05:09 PM, Troy A. Griffitts wrote:
>> Chris,
>>
>> We're toyed around with the best way to add lemma+morph searching in
>> SWORD but haven't finalized anything yet.
>>
>> Indexing Morphology codes won't helps. This would give you 2 fields
>> which need to be used together.
>>
>> For example, if you wish to find λογος only in the nominative within
>> 3 words of any present, active, indicative, 2 persons singular or
>> plural verb, you could not satisfy your search.
>>
>> Believe it or not, end users of tools like Bibleworks seem quite
>> happy to learn odd syntax like:
>>
>>
>> "λογος@* *@PAI2?"~3
>>
>>
>> Of course GUI tools to help build that syntax for them is also desired.
>>
>> This it the direction we're heading, but would require lemma encoding
>> changed from strongs to lexical form.
>>
>> Presently we could nearly obtain this by building an index as (from
>> the start of John 1.1):
>>
>> G1722@PREP G746@N-DSF G2258@V-IXI-3S
>>
>> But this would require users to know strongs numbers rather than
>> lexical form, which would almost certainly need a GUI to help them
>> build the search syntax.
>>
>> Hope this helps,
>>
>> Troy
>>
>>
>>
>>
>> On 07/10/2012 11:41 PM, Chris Burrell wrote:
>>> Hello
>>>
>>> Does anyone know/tried some kind of stem search with JSword? Is it
>>> implemented? Or would we need to do a bit more work there?
>>>
>>> Chris
>>>
>>>
>>>
>>> _______________________________________________
>>> jsword-devel mailing list
>>> <a class="moz-txt-link-abbreviated" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a>
>>> <a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a>
>>
>>
>>
>>
>> _______________________________________________
>> sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
>> <a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
>> Instructions to unsubscribe/change your settings at above page
>
>
> _______________________________________________
> sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
> <a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
> Instructions to unsubscribe/change your settings at above page
_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
<br>
<br>
</div>
<br>
</body>
</html>