Re: Lucene Block 1.1

2005-08-29 Thread Robert Goene
Hi Nicolas, Is it possible to add the index when the IndexManager is already configured? I would like to add an index in runtime. Can you tell me how i should retrieve the IndexManager from another piece of code? Thanks! Nicolas Maisonneuve wrote: variable: no possible but you can change

Re: Lucene Block 1.1

2005-08-29 Thread Robert Goene
I am sorry for my rude, general question. I will specify my problem some more: I am using the IndexManager for a number of predefined indexes, but i also want to add indexes while cocoon is running. The idea is to read an modified index definition with code similar to the

Re: Lucene Block 1.1

2005-08-29 Thread Nicolas Maisonneuve
look in the source code org.apache.cocoon.components.search.components.impl.IndexManager#ConfigureIndexManager On 8/29/05, Robert Goene [EMAIL PROTECTED] wrote: I am sorry for my rude, general question. I will specify my problem some more: I am using the IndexManager for a number of

Re: Lucene Block 1.1

2005-08-24 Thread Nicolas Maisonneuve
variable: no possible but you can change the index location programmaticaly: IndexManager.getIndex(MyIndexName).setDirectory(MyNewPath); i hope this could be usefull for you On 8/23/05, Robert Goene [EMAIL PROTECTED] wrote: I think i have solved it already. It is quite difficult to combine

Re: Lucene Block 1.1

2005-08-24 Thread Nicolas Maisonneuve
I forgot to specify: if you do this , be carefull that the indexwriter or indexreader are not opened. nicolas On 8/24/05, Nicolas Maisonneuve [EMAIL PROTECTED] wrote: variable: no possible but you can change the index location programmaticaly:

Re: Lucene Block 1.1

2005-08-23 Thread Nicolas Maisonneuve
what error do you have exactly ? On 8/22/05, Robert Goene [EMAIL PROTECTED] wrote: Thanks! I have included the lucene2.roles in the lenya.roles configuration. I assume i have to do some more configuration on the IndexManager part, because i get an error. Do you happen to have an example of

Lucene Block 1.1

2005-08-22 Thread Robert Goene
Hi, I am working on the Apache Lenya project and integrating the LuceneSearchTransformer. I saw the contribution of Nicolas Maisonneuve to the Cocoon community (http://issues.apache.org/bugzilla/show_bug.cgi?id=32263) and it contained a number of features i wanted to implement myself. Of

Re: Lucene Block 1.1

2005-08-22 Thread Nicolas Maisonneuve
i have a old searchTransformer that didn't work because i was refactoring all the project 'SearchTransformer, IndexTransformer) for working with Spring. and Hibernate and cforms for the configuration. the searchTransformer have a xml search query, with 3 query type, fulltext query (choose the

Re: Lucene Block 1.1

2005-08-22 Thread Robert Goene
Hi, Thanks for your reply. I actually meant the LuceneIndexTransformer, not a searchTransformer. I cannot make the one found in bugzilla work in my setup. It is probably something very simple, but it could also be caused by a fundamental difference betweeen cocoon 2.1 and 2.2 Are there any

Re: Lucene Block 1.1

2005-08-22 Thread Nicolas Maisonneuve
sorry to forgot to answer to your question ;-) the components declaration is differents between 2.1 and 2.2 . in 2.2 the component declaration are in WEB-INF/xconf/ (searchengine.xconf for the lucene block) in 2.1 you have to modify the cocoon.xconf (i think you have to add

Re: Lucene Block 1.1

2005-08-22 Thread Robert Goene
Thanks! I have included the lucene2.roles in the lenya.roles configuration. I assume i have to do some more configuration on the IndexManager part, because i get an error. Do you happen to have an example of a complete configuration? I have some troubles finding some good documentation. Some