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/09/01 13:35:12 UTC

Using Lucene in Lenya

Hi everybody:
After some changes in configuration files:
lucene-live.xconf
crawl_and_index
search.properties
I got below result and in fact there is no new files in htdocs-dump nor  
\live\index.
I accept any idea.
Thanks
Luis



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

init:
     [echo] INFO: Init

index:
     [echo] INFO: Index hypertext documents
     [echo] INFO: Show configuration
     [java] Index type: new
     [java] Index dir: 
f:\lenyaand\build\lenya\webapp\lenya\pubs\default\work\search\lucene\index\live\index
     [echo] INFO: Create index ...
     [java] java.lang.StringIndexOutOfBoundsException: String index out 
of range: -1
     [java]     at java.lang.String.substring(String.java:1480)
     [java]     at 
org.apache.avalon.excalibur.io.FileUtil.catPath(FileUtil.java:509)
     [java]     at 
org.apache.lenya.lucene.IndexConfiguration.resolvePath(IndexConfiguration.java:161)
     [java]     at org.apache.lenya.lucene.index.Index.main(Index.java:52)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
     [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:324)
     [java]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:196)
     [java]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:133)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:661)
     [java]     at 
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:168)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:77)
     [java]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:301)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
     [java]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1215)
     [java]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:632)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
     [java]     at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
     [java]     at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
     [echo] INFO: Index has been created

BUILD SUCCESSFUL
Total time: 6 seconds



---------------------------------------------------------------------
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 Luis Zorita <lz...@pas.uned.es>.
OK :
This is the lucene-live.xconf

<lucene>
   <update-index type="new"/>

  <!--<update-index type="incremental"/>-->


        <index-dir 
src="f:\lenyaand\build\lenya\webapp\lenya\pubs\default\work\search\lucene\index\live\index"/>
  <htdocs-dump-dir 
src="f:\lenyaand\build\lenya\webapp\lenya\pubs\default\work\search\lucene\htdocs_dump\live"/>

  <indexer class="org.apache.lenya.lucene.index.DefaultIndexer"/>
</lucene>
Luis

Michael Wechner wrote:

> it seems that one of your paths cannot be resolved properly.
> Can you post your configuration file lucene-live.xconf ?
>
> Michi
>
> Luis Zorita wrote:
>
>> Hi everybody:
>> After some changes in configuration files:
>> lucene-live.xconf
>> crawl_and_index
>> search.properties
>> I got below result and in fact there is no new files in htdocs-dump 
>> nor  \live\index.
>> I accept any idea.
>> Thanks
>> Luis
>>
>>
>>
>> F:\Lenyaand\build\lenya\webapp>ant -f 
>> f:\lenyaand\build\lenya\webapp\lenya\bin\crawl_and_index.xml 
>> -Dlucene.xconf=f:\lenyaand\build\lenya\webapp\lenya\pubs\default\config\search\lucene-live.xconf 
>> index
>> Buildfile: f:\lenyaand\build\lenya\webapp\lenya\bin\crawl_and_index.xml
>>
>> init:
>>     [echo] INFO: Init
>>
>> index:
>>     [echo] INFO: Index hypertext documents
>>     [echo] INFO: Show configuration
>>     [java] Index type: new
>>     [java] Index dir: 
>> f:\lenyaand\build\lenya\webapp\lenya\pubs\default\work\search\lucene\index\live\index 
>>
>>     [echo] INFO: Create index ...
>>     [java] java.lang.StringIndexOutOfBoundsException: String index 
>> out of range: -1
>>     [java]     at java.lang.String.substring(String.java:1480)
>>     [java]     at 
>> org.apache.avalon.excalibur.io.FileUtil.catPath(FileUtil.java:509)
>>     [java]     at 
>> org.apache.lenya.lucene.IndexConfiguration.resolvePath(IndexConfiguration.java:161) 
>>
>>     [java]     at 
>> org.apache.lenya.lucene.index.Index.main(Index.java:52)
>>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
>> Method)
>>     [java]     at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>
>>     [java]     at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>
>>     [java]     at java.lang.reflect.Method.invoke(Method.java:324)
>>     [java]     at 
>> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:196)
>>     [java]     at 
>> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:133)
>>     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:661)
>>     [java]     at 
>> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:168)
>>     [java]     at 
>> org.apache.tools.ant.taskdefs.Java.execute(Java.java:77)
>>     [java]     at 
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
>>     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
>>     [java]     at org.apache.tools.ant.Target.execute(Target.java:301)
>>     [java]     at 
>> org.apache.tools.ant.Target.performTasks(Target.java:328)
>>     [java]     at 
>> org.apache.tools.ant.Project.executeTarget(Project.java:1215)
>>     [java]     at 
>> org.apache.tools.ant.Project.executeTargets(Project.java:1063)
>>     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:632)
>>     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
>>     [java]     at 
>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
>>     [java]     at 
>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
>>     [echo] INFO: Index has been created
>>
>> BUILD SUCCESSFUL
>> Total time: 6 seconds
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>>
>>
>
>


---------------------------------------------------------------------
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>.
it seems that one of your paths cannot be resolved properly.
Can you post your configuration file lucene-live.xconf ?

Michi

Luis Zorita wrote:

> Hi everybody:
> After some changes in configuration files:
> lucene-live.xconf
> crawl_and_index
> search.properties
> I got below result and in fact there is no new files in htdocs-dump 
> nor  \live\index.
> I accept any idea.
> Thanks
> Luis
>
>
>
> F:\Lenyaand\build\lenya\webapp>ant -f 
> f:\lenyaand\build\lenya\webapp\lenya\bin\crawl_and_index.xml 
> -Dlucene.xconf=f:\lenyaand\build\lenya\webapp\lenya\pubs\default\config\search\lucene-live.xconf 
> index
> Buildfile: f:\lenyaand\build\lenya\webapp\lenya\bin\crawl_and_index.xml
>
> init:
>     [echo] INFO: Init
>
> index:
>     [echo] INFO: Index hypertext documents
>     [echo] INFO: Show configuration
>     [java] Index type: new
>     [java] Index dir: 
> f:\lenyaand\build\lenya\webapp\lenya\pubs\default\work\search\lucene\index\live\index 
>
>     [echo] INFO: Create index ...
>     [java] java.lang.StringIndexOutOfBoundsException: String index out 
> of range: -1
>     [java]     at java.lang.String.substring(String.java:1480)
>     [java]     at 
> org.apache.avalon.excalibur.io.FileUtil.catPath(FileUtil.java:509)
>     [java]     at 
> org.apache.lenya.lucene.IndexConfiguration.resolvePath(IndexConfiguration.java:161) 
>
>     [java]     at org.apache.lenya.lucene.index.Index.main(Index.java:52)
>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>     [java]     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>     [java]     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>     [java]     at java.lang.reflect.Method.invoke(Method.java:324)
>     [java]     at 
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:196)
>     [java]     at 
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:133)
>     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:661)
>     [java]     at 
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:168)
>     [java]     at 
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:77)
>     [java]     at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
>     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
>     [java]     at org.apache.tools.ant.Target.execute(Target.java:301)
>     [java]     at 
> org.apache.tools.ant.Target.performTasks(Target.java:328)
>     [java]     at 
> org.apache.tools.ant.Project.executeTarget(Project.java:1215)
>     [java]     at 
> org.apache.tools.ant.Project.executeTargets(Project.java:1063)
>     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:632)
>     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
>     [java]     at 
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
>     [java]     at 
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
>     [echo] INFO: Index has been created
>
> BUILD SUCCESSFUL
> Total time: 6 seconds
>
>
>
> ---------------------------------------------------------------------
> 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