cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: LuceneIndexContentHandler
Date Thu, 11 Mar 2004 23:18:03 GMT
Joerg Heinicke wrote:

> On 11.03.2004 13:23, Vadim Gritsenko wrote:
>
>> startElement a
>> character 'key'
>> startElement b
>> character 'word'
>>
>> Will become "keyword" instead of "key word". No, this won't work, 
>> again :-)
>> Addition of
>

^^^^

>> startElement:
>>    if (flag)
>>        x.append(' ');
>>        flag = false;
>>
>> Should fix it, shouldn't it?
>
>
> This game is becoming funny :)
>
> Replace the startElements in your sample with endElements and it won't 
> work. But adding if(flag) like above additionally to endElement should 
> fix this. Did we get it now? :)


Yes, note that I wrote "addition" above - in addition to your suggestion:

characters:
    flag = true;

endElement:
    if (flag)
        x.append(' ');
        flag = false;

So yes, I think now it will work :-)

Vadim


Mime
View raw message