[jsword-devel] Searching in German
Manfred Bergmann
bergmannmd at yahoo.de
Wed Feb 6 07:59:40 MST 2008
Am 06.02.2008 um 15:34 schrieb DM Smith:
> Manfred Bergmann wrote:
>> Hi DM.
>>
>> AFAIK, Lucene from version 2.1 can deal with leading wildcards.
>>
> Lucene 2.3 still throws an error: "Cannot parse '*ning': '*' or '?'
> not
> allowed as first character in WildcardQuery"
>
> Perhaps, there's something that needs to be done to enable it?
Yes, there is a flag in QueryParser class called
setAllowLeadingWindcard(boolean).
It is available since v2.1.
>
>
>> It would find "*schiff".
>> Wouldn't this be enough?
>>
> If a German speaker searches for "schiff" would they expect to find in
> words like donaudampfschiff?
They probably would expect to find it.
But sometimes you find search options like "exact search phrase". Then
it should find "schiff".
Else I would expect that the search engine adds wildcards in front and
behind so that any words are found containing this token.
>
>
> Prefix wildcard search may be sufficient, but I don't know if it is
> friendly.
True. But when adding a leading wildcard for the user it will give the
same result.
What about all the other languages?
Does this work in english actually?
Regards,
Manfred
> In Him,
> DM
>>
>> Regards,
>> Manfred
>>
>>
>> Am 06.02.2008 um 13:57 schrieb DM Smith:
>>
>>
>>> FYI,
>>>
>>> A new capability is being added to Lucene to analyze German words
>>> into
>>> constituent parts. The next release, which might contain it, of
>>> Lucene
>>> will probably be in about 4 months.
>>>
>>> Donaudampfschiff would be decomposed to Donau, dampf, schiff so that
>>> you can find the word even when you only enter "Schiff".
>>>
>>> Is this something that we should add?
>>>
>>> It has been over 30 years since I studied German so I am not
>>> qualified
>>> to answer my own question.
>>>
>>> Together we achieve more for Christ,
>>> DM Smith
>>>
>>> _______________________________________________
>>> jsword-devel mailing list
>>> jsword-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/jsword-devel
>>>
>>
>>
>>
>> _______________________________________________
>> jsword-devel mailing list
>> jsword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/jsword-devel
>>
>>
>
>
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
More information about the jsword-devel
mailing list