You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Luis zorita <lz...@pas.uned.es> on 2004/08/31 19:56:47 UTC

Using lucene in Lenya

Hi everybody:
My next step in using lenya is using the search engine in lenya1.2. Lucene.
I don´t know why but I have some troubles.
1.- I want search in my live area  using the search utility in the 
default publication.
I´m in a w2000 environment.
After reading the documentation and some mails in the users list :
ant -f d:\lenyaprueba\build\lenya\webapp\lenya\bin\crawl_and_index.xml 
-Dlucene.xconf=d:\lenyaprueba\build\lenya\webapp\lenya\pubs\default\config\search\lucene-live.xconf 
index

here my tree publication is:
d:\lenyaprueba\build\lenya\webapp\lenya\pubs\default

in search.properties:
webapp.dir=d:\lenyaprueba\build\lenya\wepapp
java.run=c:\j2sdk1.4.1_02\bin\java

in lucene-live.xconf:
<lucene>
  <update-index type="new"/>
<index-dir src="../../work/search/lucene/index/live/index"/>
<htdocs-dump-dir src="../../content/live"/>
  <indexer class="org.apache.lenya.lucene.index.DefaultIndexer"/>
</lucene>

.My first problem is:
runnig :

D:\lenyaprueba\build\lenya\webapp>ant -f 
d:\lenyaprueba\build\lenya\webapp\lenya\bin\crawl_and_index.xml 
-Dlucene.xconf=d:\lenyaprueba\build\lenya\webapp\lenya\pubs\default\config\search\lucene-live.xconf 
index
Buildfile: d:\lenyaprueba\build\lenya\webapp\lenya\bin\crawl_and_index.xml

init:
     [echo] INFO: Init

index:
     [echo] INFO: Index hypertext documents
     [echo] INFO: Show configuration
     [java] Could not find org.apache.lenya.lucene.IndexConfiguration . 
Make you have it in your classpath
     [echo] INFO: Create index ...
     [java] Could not find org.apache.lenya.lucene.index.Index . Make 
you have it in your classpath
     [echo] INFO: Index has been created

BUILD SUCCESSFUL
Total time: 2 seconds

I set classpath=D:\lenyaprueba\build\lenya\webapp
and certainly both classes are in the right tree:
org.apache.lenya.lucene.IndexConfiguration in: 
d:\lenyaprueba\build\lenya\webapp\WEB-INF\classes\org\apache\lenya\lucene 
y 
d:\lenyaprueba\build\lenya\webapp\WEB-INF\classes\org\apache\lenya\lucene\index

I would appreciate any help
Luis








>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Using lucene in Lenya

Posted by Michael Wechner <mi...@wyona.com>.
Luis zorita wrote:

>
>
> I set classpath=D:\lenyaprueba\build\lenya\webapp
> and certainly both classes are in the right tree:
> org.apache.lenya.lucene.IndexConfiguration in: 
> d:\lenyaprueba\build\lenya\webapp\WEB-INF\classes\org\apache\lenya\lucene 
> y 
> d:\lenyaprueba\build\lenya\webapp\WEB-INF\classes\org\apache\lenya\lucene\index 
>
>

well, actually the classpath is being set within the build file 
crawl_and_index.xml, which is working on Linux/Unix without any problems.

To be honest I have never tested it on Windows, but I guess it's just a 
path problem somewhere within the build file.

Michi

> I would appreciate any help
> Luis
>
>
>
>
>
>
>
>
>>  
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org