[opencms-dev] Lucene Integration

Simon Knightley simon.knightley at syskinetic.co.uk
Fri Apr 5 14:26:50 CEST 2002


Marian,

Thanks for the comment.  I guess you are right.
The original coding was to speed up the index creation function, i.e. if
a directory contained un-indexable content then the whole directory and
subdirectories are ignored.  If you store your .css files in the top
level directory then I guess you are in trouble!

I shall get the source code altered on the site.  Thanks again.

Simon Knightley
Consulting Director
Syskinetic Consulting Limited
http://www.syskinetic.com

-----Original Message-----
From: owner-opencms-dev at www.opencms.com
[mailto:owner-opencms-dev at www.opencms.com] On Behalf Of Marian Kasala
Sent: 05 April 2002 13:02
To: opencms-dev at www.opencms.com
Subject: Re: [opencms-dev] Lucene Integration

Hi Simon,

I was trying to use your Lucene-OpenCms integration, but
I found a problem when creating index.
Function indexContent() returned without creating a single entry.
I looked at source code made some debug outputs recompiled and found
that
in function addContent() the switch statement contains default branch
with
return:

switch(file.getType()) {
....
 default:
      return "";
....

The problem is that if a file in iteration is of "default type"
(plaintext,
*.css, ...)
function returns without further proccesing.

I corrected the statement as follows:

switch(file.getType()) {
....
 default:
      continue;
....

Now it's forking fine.
You've done good job Simon.

Regards
Marian Kasala


> -----Original Message-----
> From: owner-opencms-dev at www.opencms.com
> [mailto:owner-opencms-dev at www.opencms.com] On Behalf Of Simon
Knightley
> Sent: Wednesday, March 27, 2002 7:00 PM
> To: opencms-dev at www.opencms.com
> Subject: [opencms-dev] Lucene Integration
>
>
> For those interested in search engine integration.  I have completed
> some code to make Lucene work with OpenCMS. Lucene is a very capable
> open source search engine available as part of the Jakarta project.
>
> I have not yet had time to write any documentation, but for those of
you
> who are still tempted you can download the source at
> http://www.syskinetic.com/customer/links.html the site search on the
> page uses the actual code, so you can see what it is capable of.
>
> Any feedback on how it might be improved appreciated.
>
> Regards
>
> Simon Knightley
> Consulting Director
> Syskinetic Consulting Limited
> http:// <http://www.syskinetic.com> www.syskinetic.com
>
>
>
>
>
>
>






More information about the opencms-dev mailing list