display the index number

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.

Hi,

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

Best regards,

Thorsten Fiebig

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?

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