From: ashok _ <lis...@gm...> - 2009-10-27 14:54:17
|
Hi, I am running eXist 1.4 (built from source from svn) -- I have enabled lucene indexing via collection.xconf [1] I have an Xquery which declares the ft namespace like this : declare namespace ft = "http://exist-db.org/xquery/lucene" ; and then further down i query the fulltext index : for $result in collection($data-collection)//*[ft:query(., $q)] return <p>{data($results)}</p> Unfortunately i keep getting the error on the above line : Call to undeclared function: ft:query What am i missing ? thanks in advance, Ashok [1] collection.xconf --- <collection xmlns="http://exist-db.org/collection-config/1.0"> <index xmlns:atom="http://www.w3.org/2005/Atom" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:wiki="http://exist-db.org/xquery/wiki"> <!-- Disable the standard full text index --> <fulltext default="none" attributes="no"/> <!-- Lucene index is configured below --> <lucene> <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/> <analyzer id="ws" class="org.apache.lucene.analysis.WhitespaceAnalyzer"/> <!-- index definition for body elements --> <text qname="akomaNtoso"/> <text qname="debate"/> <text qname="preface"/> <text qname="subdivision"/> <text qname="papers"/> <text qname="other"/> <text qname="ul"/> <text qname="noticesOfMotion"/> <text qname="questions"/> <text match="//question/*"/> <text qname="from"/> <text qname="answer"/> <text match="//speech/*"/> <text qname="conclusions"/> <text qname="heading"/> <text match="//TLCPerson/*"/> <text match="//TLCRole/*"/> <text match="//TLCOrganization/*"/> <text match="//FRBRWork/*"/> <text match="//FRBRExpression/*"/> <text match="//FRBRManifestation/*"/> <text match="//FRBRthis/*"/> <text match="//FRBRuri/*"/> <text match="//FRBRdate/*"/> <text match="//FRBRauthor/*"/> <text match="//FRBRauthor/*"/> <text match="//publication/*"/> <text qname="p"> <inline qname="em"/> </text> <!-- "inline" and "ignore" can be specified globally or per-index as shown above --> <inline qname="b"/> <ignore qname="scene"/> </lucene> </index> </collection> |