From: Mike S. <so...@if...> - 2009-06-18 19:55:55
|
I discovered something weird about index configuration in collection.xconf; namespace declarations on the root <collection> node (or, I think other nodes) are not available in index config: you have to declare them on the <index> node. I had: <collection xmlns="http://exist-db.org/collection-config/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ifp="http://www.ifactory.com/press"> <index > <fulltext default="none" attributes="no"/> <lucene> <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/> <text qname="ifp:body"/> <text qname="dc:title" boost="2.0"/> </lucene> </index> </collection> and I was getting undeclared namespace errors when uploading this config file, which ultimately led to some other unpredictable behavior (exceptions in LuceneMatchListener when it attempts to read the config). Workaround is to move the namespace decls to the <index> node... -Mike |