Check (both in the query and admin ui): - if the namespace is correct and matches query - if element name is correct and matches query - if collation is correct and matches.
If all of this is true then just wait for the reindexing to be complete. You can check that in the database status page in the admin ui. Nuno On Mar 28, 2011 11:30 PM, "Curtis Wilde" <[email protected]> wrote: > I'm trying to perform a search, and I know I have an index in place (see > below), but it returns an exception saying that the index is not found. > > This also happens after re-indexing my database. > > Windows 7x64, MarkLogic 4.2-3.2 > > <range-element-attribute-index xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xmlns=" > http://marklogic.com/xdmp/database"> > > <scalar-type>string</scalar-type> > <parent-namespace-uri/> > <parent-localname>book chapter letter attachment magazine section > article subArticle figureBlock topicBlock formBlock tocBlock > tocEntry</parent-localname> > <namespace-uri/> > <localname>fileID</localname> > <collation>http://marklogic.com/collation/</collation> > <range-value-positions>false</range-value-positions> > </range-element-attribute-index> > > > let $uri := "/myfile.xml" > return cts:element-attribute-values( xs:QName("article"), > xs:QName("fileID"), cts:element-query( xs:QName( "article" ), > cts:document-query( $uri) ) ) > > > [1.0-ml] XDMP-ELEMATTRRIDXNOTFOUND: > cts:element-attribute-values(fn:QName("", "article"), fn:QName("", > "fileID"), cts:element-query(fn:QName("", "article"), > cts:document-query("/myfile.xml"), ())) -- No element-attribute range > index for fn:QName("", "article") fn:QName("", "fileID") > http://marklogic.com/collation/
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
