From: Hungerburg <pc...@my...> - 2013-12-03 09:38:42
|
Am 2013-12-03 06:46, schrieb oe...@gm...: > Hi Grant, > > Are the attributes prefixed or not, that is, are they in a namespace or > in no namespace? Please report the code that does not work for you. Grant, Jens, I learned that attributes are not in any namespace, ever. With below stance in collection.xconf: ><index xmlns:myns="http://..."> > <lucene> > <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/> > <analyzer id="de" class="org.apache.lucene.analysis.de.GermanAnalyzer"/> > <analyzer id="ws" class="org.apache.lucene.analysis.WhitespaceAnalyzer"/> > <!-- Searchable nodes --> > <text qname="myns:myent" field="pdb" analyzer="de"/> > <text qname="@code" field="code" analyzer="ws"/> > <ignore qname="svg"/> > <ignore qname="svg/@id"/> > </lucene> ></index> below query returns the expected results from namespaced documents: > let $query := <query><near slop="10" ordered="no">{$querystring}</near></query> > let $hits := collection($coll)/myns:myent[ft:query-field("code", $query)] Will that help? PS: the dashboard should tell the eXist-db version. -- Peter |