<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Ben</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When you search use an object from Searcher class.
ok?</FONT></DIV>
<DIV><FONT face=Arial size=2>IndexSearcher is a subclass of them.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>for create an IndexSearcher you make some
this:</FONT></DIV>
<DIV><FONT face=Arial size=2>IndexSearcher searcher = new
IndexSearcher("<indexDir>");</FONT></DIV>
<DIV><FONT face=Arial size=2>See the Lucene javadoc.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I implement this in java classes, not in
jsp.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is that what you mean?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Ernesto.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ben@solidstategroup.com href="mailto:ben@solidstategroup.com">Ben
Rometsch</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, February 05, 2004 7:23
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [opencms-dev] Lucene with
Mutliple Projects</DIV>
<DIV><BR></DIV>Hi Ernesto,<BR><BR>Finally! It is now indexing the correct
branch of the VFS into a seperate index directory. <BR><BR>I'm not sure how to
reference this index in my search jsp page however. You mentioned an
IndexSearcher in your original reply, but I can see no mention to it in the
documentation...<BR><BR>Thanks for the help,<BR>Ben<BR><BR>Ernesto De Santis
wrote:<BR>
<BLOCKQUOTE cite=mid000d01c3eb74$b7270fb0$659359c8@ernesto type="cite"><PRE wrap="">Hi Ben
We use the absolute path. We try with some alternatives for use the relative
path, but not work. Sorry, I forget said this in previos mail.
If somebody know the solution, we are very happy...
Ernesto.
----- Original Message -----
From: "Ben Rometsch" <A class=moz-txt-link-rfc2396E href="mailto:ben@solidstategroup.com"><ben@solidstategroup.com></A>
To: <A class=moz-txt-link-rfc2396E href="mailto:opencms-dev@opencms.org"><opencms-dev@opencms.org></A>
Sent: Wednesday, February 04, 2004 1:19 PM
Subject: Re: [opencms-dev] Lucene with Mutliple Projects
Hi Ernesto,
I am getting the following error:
java.io.FileNotFoundException: config/registry2.xml (No such file or
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.opencms.file.CmsRegistry.<init>(CmsRegistry.java:180)
at
net.grcomputing.opencms.search.lucene.SearchParameters.<init>(SearchParamete
rs.java:101)
at
net.grcomputing.opencms.search.lucene.IndexManager.<init>(IndexManager.java:
103)
at
net.grcomputing.opencms.search.lucene.CronIndexManager.launch(CronIndexManag
er.java:103)
at
com.opencms.core.CmsCronScheduleJob.run(CmsCronScheduleJob.java:68)
The file registry2.xml is present in the <webapp>/WEB-INF/config
directory. Any ideas?
Ben
Ernesto De Santis wrote:
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">Ben
We have two indexes in one project.
You can build a second "registry.xml", for example registry2.xml and
configure the second luceneSearch in this file. With another Analyzer
(if you want) and in another folder (indexDir).
When you configure the task, you can use a parameter specifying which
.xml to use.
For example:
30 06 * * * Admin Administrators
net.grcomputing.opencms.search.lucene.CronIndexManager
createIndex=true,registry=config/registry2.xml
Note the registry parameter.
There are problems with spaces in the task line, donīt use spaces! only
if necessary.
After that, you should use one IndexSearcher per index.
Ernesto.
----- Original Message -----
From: "Ben Rometsch" <A class=moz-txt-link-rfc2396E href="mailto:ben@solidstategroup.com"><ben@solidstategroup.com></A>
To: <A class=moz-txt-link-rfc2396E href="mailto:opencms-dev@opencms.org"><opencms-dev@opencms.org></A>
Sent: Tuesday, February 03, 2004 2:41 PM
Subject: [opencms-dev] Lucene with Mutliple Projects
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">Hi There,
I have successfully integrated the lucene module into my project, but I
need to implement a seperate index for a second project that I have in
my opencms application. Is this possible? I tried just copying the entire:
<luceneSearch>
...
</luceneSearch>
in the registry.xml file and setting up different VFS directories and a
different index directory in the actual file system, but that does not
appear to be working - nothing is being created in the second index
directory.
Any ideas?
Thanks,
Ben
--
----== Solid State Group ==----
Web <A class=moz-txt-link-abbreviated href="http://www.solidstategroup.com">www.solidstategroup.com</A>
Email <A class=moz-txt-link-abbreviated href="mailto:ben@solidstategroup.com">ben@solidstategroup.com</A>
MSN <A class=moz-txt-link-abbreviated href="mailto:benrometsch@hotmail.com">benrometsch@hotmail.com</A>
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<A class=moz-txt-link-freetext href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</A>
</PRE></BLOCKQUOTE><PRE wrap="">_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<A class=moz-txt-link-freetext href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</A>
</PRE></BLOCKQUOTE><PRE wrap=""><!---->
</PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">--
----== Solid State Group ==----
Web <A class=moz-txt-link-abbreviated href="http://www.solidstategroup.com">www.solidstategroup.com</A>
Email <A class=moz-txt-link-abbreviated href="mailto:ben@solidstategroup.com">ben@solidstategroup.com</A>
MSN <A class=moz-txt-link-abbreviated href="mailto:benrometsch@hotmail.com">benrometsch@hotmail.com</A></PRE>_______________________________________________
This mail is send to you from the opencms-dev mailing list To change your list
options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev </BLOCKQUOTE></BODY></HTML>