On 10.1.2005, at 13:16, Stefan L�tzkendorf wrote:
Eirikur Hrafnsson wrote:On 7.1.2005, at 16:44, Stefan L�tzkendorf wrote:In 2.2. we will introduce properties to the slide configuration. i.e. you can define something likeHi Eirikur,Great, I see from the cvs you already have only 20 minutes after my email! : D
your are right we should have some thing like
if (this.indexedProperties != null) {
indexConfiguration.readPropertyConfiguration(this.indexedProperties);
}
(I will fix this)What is ${datapath} btw?
This methods call reads a user configuration (if any).
you can give a user configuration to define new properties to be indexed like
<propertiesindexer_classname="org.apache.slide.index.lucene.LucenePro pe rtiesIndexer">
<parameter_name="indexpath">${datapath}/store1/index/metadata</ parameter>
<configuration name="indexed-properties">
<property name="abstract" namespace="http://any.domain/test/">
<text analyzer="org.apache.lucene.analysis.de.GermanAnalyzer"/>
<is-defined/>
</property>
<property name="keywords" namespace="http://any.domain/test/">
<text analyzer="org.apache.lucene.analysis.WhitespaceAnalyzer"/>
<is-defined/>
</property>
</configuration>
</propertiesindexer>
<property name="datapath">/usr/local...</property>
on the toplevel (below <slide>) of the slide.xml and use these properties in configuration valued as ${datapath}.
Nice feature.
One question...shouldn't the Slide lucene indexers be writing to the Slide repository? Kind of strange to write the index to the local file system but everything else to my repository?
btw I have changed the extractor interface and the abract extractors implementors a little and I am now trying to get a search to return some values...
Best Regards
Eirikur S. Hrafnsson, [EMAIL PROTECTED] Chief Software Engineer Idega Software http://www.idega.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
