logo       

Re: [BlueXML-user] usage of util:qname-index-lookup in xquery: msg#00059

Subject: Re: [BlueXML-user] usage of util:qname-index-lookup in xquery
Thanks JC,

I tried this, i was missing <create qname="docid" type="xs:string"/> , but it's still doesn't work :(

Marc

2006/4/20, Jean-Christophe Kermagoret < jck-qkEci4++Hf1AfugRpC6u6w@xxxxxxxxxxxxxxxx>:
Marc,
you have to reindex your collection. But you have to create indexes in
your /db/system/config/db/atlantic-events/www.atlantic-events.com with
something like that :

<collection xmlns="http://exist-db.org/collection-config/1.0 ">
     <index>
         <fulltext default="all" attributes="true"/>

         <create qname="id" type="xs:string"/>
         <create qname="code" type="xs:string"/>
         <create qname="docid" type="xs:string"/>

         <create path="meta/title" type="xs:string"/>
         <create path="meta/author" type="xs:string"/>
         <create path="meta/doctype" type="xs:string"/>
         <create path="version/date" type="xs:string"/>
         <create path="meta/dtstart" type="xs:string"/>
         <create path="meta/dtend" type="xs:string"/>
         <create path="meta/location" type="xs:string"/>
         <create path="meta/name" type="xs:string"/>
         <create path="meta/state" type="xs:string"/>
         <create path="meta/publication" type="xs:string"/>
         <create path="meta/category" type="xs:string"/>
         <create path="meta/field" type="xs:string"/>
         <create path="meta/num" type="xs:string"/>
         <create path="meta/publicationDate" type="xs:string"/>
         <create path="meta/expirationDate" type="xs:string"/>
         <create path="meta/retireDate" type="xs:string"/>
         <create path="meta/removalDate" type="xs:string"/>
     </index>
</collection>

JC

Marc Salvetti a écrit :
> I'm trying to implement a join in my query.
> After looking at the code in lib/join.xqm, i see that the function is
> used to process the join.
>
> I have a doc that contains the info to join. this doc have a
> <docid>20060420160933739_787860098984</docid>
>
> If i try util:qname-index-lookup( xs:QName("docid"),
> '20060420160933739_787860098984' )/.. in the exist client, i don't get
> the doc,
> but if i try /document[docid='20060420160933739_787860098984'] i get it
> correctly.
>
> Is there a known problem with this function ? Maybe i have to reindex
> the collection or something like that ?
>
> Marc
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> User mailing list
> User-E0IXfuzpajFHgg9j4ji3+w@xxxxxxxxxxxxxxxx
> http://mlm.triglyphe.com/mailman/listinfo/user


--

BlueXML
Jean-Christophe Kermagoret
Directeur associé
jck-qkEci4++Hf1AfugRpC6u6w@xxxxxxxxxxxxxxxx

_______________________________________________
User mailing list
User-E0IXfuzpajFHgg9j4ji3+w@xxxxxxxxxxxxxxxx
http://mlm.triglyphe.com/mailman/listinfo/user

_______________________________________________
User mailing list
User-E0IXfuzpajFHgg9j4ji3+w@xxxxxxxxxxxxxxxx
http://mlm.triglyphe.com/mailman/listinfo/user
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    politics.lenini...    audio.emagic.ex...    tex.texinfo.gen...    handhelds.linux...    ietf.sipping/20...    lang.erlang.gen...    cygwin.talk/200...    yellowdog.gener...    mozilla.devel.l...    xfree86.newbie/...    openbsd.ports/2...    db.oracle.devel...    kde.kalyxo.deve...    user-groups.lin...    bbc.cvs/2003-04...    gnu.libtool.bug...    redhat.k12osn/2...    emulators.wine....    freebsd.devel.d...    search.xapian.g...    java.izpack.use...    network.mrtg.us...    windows.total-c...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe