cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Maisonneuve <n.maisonne...@gmail.com>
Subject Re: Lucene Block 1.1
Date Wed, 24 Aug 2005 07:01:37 GMT
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 <n.maisonneuve@gmail.com> wrote:
> 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 <robert@goene.nl> wrote:
> > I think i have solved it already. It is quite difficult to combine
> > existing cocoon configurations, i must say.
> >
> > I do have another question for you: i want to use multiple indexes in
> > one cocoon webapp, but i would like to have a variable index location.
> > Is it possible to define the index location in the lucene:index file or
> > should it be wired in the index configuration? If the latter is the
> > case, is there a possibility to use a variable in the configuration?
> >
> > Regards, Robert
> >
> > Nicolas Maisonneuve wrote:
> > > what error do you have exactly ?
> > >
> > > On 8/22/05, Robert Goene <robert@goene.nl> 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 a complete configuration? I have
> > >>some troubles finding some good documentation. Some URL's would be great
> > >>too!
> > >>
> > >>Thanks again, Robert
> > >>
> > >>Nicolas Maisonneuve wrote:
> > >>
> > >>>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
> > >>>user-role="xconf/myuser.xconf" attribute  in the cocoon tag or
> > >>>something like that, seek into the mailing list )  to use the
> > >>>searchengine.xconf
> > >>>maybe the declaration format changes , see the doc for the component
> > >>>declaration in 2.1
> > >>>
> > >>>but there are not speacial 2.2 feature used in the lucene block. so
> > >>>the transformer is 2.1 compatible. It's just a configuration pb.
> > >>>
> > >>>nicolas
> > >>>
> > >>>
> > >>>
> > >>>On 8/22/05, Robert Goene <robert@goene.nl> wrote:
> > >>>
> > >>>
> > >>>>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 extra steps i need to take to use the
> > >>>>LuceneIndexTransformer2, like adding components to cocoon.xconf?
> > >>>>
> > >>>>Thanks a lot!
> > >>>>
> > >>>>Robert
> > >>>>
> > >>>>Nicolas Maisonneuve wrote:
> > >>>>
> > >>>>
> > >>>>>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 set of indexed field and  boost the
raking
> > >>>>>of some  fields (ex: Title more important than body etc),  
faceted
> > >>>>>classification  query, for hierarchical key word, and simple
field
> > >>>>>search
> > >>>>>
> > >>>>>but i'm really not proud  about my code , it's tirdy .. . maybe
i can
> > >>>>>upload the code event if doesn't work , after cleaning and documenting
> > >>>>>the source.
> > >>>>>
> > >>>>>
> > >>>>>nicolas
> > >>>>>
> > >>>>>
> > >>>>>On 8/22/05, Robert Goene <robert@goene.nl> wrote:
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>>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 course,
> > >>>>>>i would love to use your contribution
> > >>>>>>
> > >>>>>>The problem is that Lenya uses the 2.1.x version of Cocoon
and not the
> > >>>>>>2.2 trunk. I get errors when running the transformer: the
> > >>>>>>org.apache.cocoon.components.search.components.IndexManager
component
> > >>>>>>could not be found.
> > >>>>>>
> > >>>>>>Is this error caused by my version of cocoon or is it caused
by a faulty
> > >>>>>>configuration?
> > >>>>>>
> > >>>>>>Thanks, Robert
> > >>>>>>
> > >>>>>>
> > >>>>
> > >>>>
> > >>>>--
> > >>>>Cleancode
> > >>>>Robert Goené
> > >>>>
> > >>>>Kadijksplein 14-II
> > >>>>1018 AC Amsterdam
> > >>>>06 26090816
> > >>>>
> > >>
> > >>
> > >>--
> > >>Cleancode
> > >>Robert Goené
> > >>
> > >>Kadijksplein 14-II
> > >>1018 AC Amsterdam
> > >>06 26090816
> > >>
> >
> >
> > --
> > Cleancode
> > Robert Goené
> >
> > Kadijksplein 14-II
> > 1018 AC Amsterdam
> > 06 26090816
> >
>

Mime
View raw message