[sword-devel] CLucene
DM Smith
dmsmith555 at yahoo.com
Sun Aug 13 17:32:27 MST 2006
Joachim,
I could be wrong, but I'm not sure that CLucene's sort would product
the right results.
IIRC, we store the OSIS ids and these are what need to be sorted into
Biblical Order.
If it were true that the verses (aka lucene documents) were added in
order then one could use the ordering of the document ids (Java
Lucene's default sort) to produce the correct order, but if there are
any out of order adds then that would not work.
Currently the algorithm for building the index will create an index
with document order equal to canonical order. However, write support
has not been added to an index yet. That is if the application re-
writes a verse in the index, the Lucene index is not updated. When
update support is added to the index, then document order sort
becomes meaningless.
It is possible to sort on a field, but even then the ordering of OSIS
ids would not return the right results. We want Gen to sort earlier
than Exo.
DM
On Aug 13, 2006, at 7:04 PM, Joachim Ansorg wrote:
> The current clucenen has support for the native order, it just
> needs to be
> patched into sword.
>
> Joachim
>
>> The ListKey container which is returned from SWModule::search has a
>> newly added .sort() method.
>>
>> Eeli Kaikkonen wrote:
>>> On Sun, 6 Aug 2006, Eeli Kaikkonen wrote:
>>>> I tried to compile Sword for some time ago on Debian unstable.
>>>> CLucene
>>>> had some problem then. Now I tried again (after upgrading
>>>> Debian) and
>>>> compilation worked for some reason, maybe CLucene had been updated.
>>>>
>>>>
>>>> Now the problem is that I don't know how to use clucene with
>>>> sword. Any
>>>> pointers? I just like to test it, preferably with some simple
>>>> command
>>>> like tool like diatheke.
>>>
>>> I managed to compile BibleTime1.6beta3 with clucene support. I made
>>> indexes with that and copied them to sword module directories. I
>>> made
>>> necessary changes to diatheke and now it supports clucene search.
>>>
>>> /work/sword/bin/diatheke -b KJV -s lucene -k "what*"
>>>
>>> Verses containing "what*"-- I Samuel 20:4 ; Genesis 2:19 ; Romans
>>> 2:29
>>> ; [...] Revelation of John 3:3 -- 1036 matches total (KJV)
>>>
>>> It took about 2 seconds when the index was in physical memory disk
>>> cache. Great. Downside is that returned verse keys are not
>>> alpabetically
>>> arranged.
>>>
>>> Yours,
>>> Eeli Kaikkonen (Mr.), Oulu, Finland
>>> e-mail: eekaikko at mailx.studentx.oulux.fix (with no x)
>>>
>>> _______________________________________________
>>> sword-devel mailing list: sword-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>> Instructions to unsubscribe/change your settings at above page
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>
> --
> <>< Re: deemed
> www.bibletime.info
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel
mailing list