webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  display the index number

    Posted Thu March 24, 2005 06:11 PM

    Could anyone please tell me how to query the index of an element? For example I have indexed an element in schema as below:

    
    <TEI>
    <Body>
    <p>
    ....
    <index>
    <text />
    </index>
    ...
    </p>
    </Body>
    </TEI>

    I want to know for example after the following Xquery:

    
    for $d in input()/TEI/body/p
    where tf:containsText ($d, "Omaha")
    return $d

    the index number of the word “Omaha”. I know there is a function called ino:DisplayIndex(), but I don’t know how to use it… Thanks for the help in advance.


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: display the index number

    Posted Wed April 13, 2005 07:33 PM

    Hi,

    What do you mean by query the index number of an element or a word?

    Best regards,

    Thorsten Fiebig


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: display the index number

    Posted Tue April 26, 2005 06:33 PM

    Hi! thanks for the response. What I meant is: if an element is full-text indexed, then there may be a numerical number which is the index number for a word stored under this element. An analogue would be the session number in the web application. Am I explaining clear enough?


    #Tamino
    #webMethods
    #API-Management


  • 4.  RE: display the index number

    Posted Wed April 27, 2005 04:50 PM

    Hi,

    I’m afraid there is no way to query the index number for a string value. Even the “ino:DisplayIndex” administration function does not provide this kind of information.

    Best regards,

    Thorsten Fiebig


    #API-Management
    #webMethods
    #Tamino