Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Appendix B Format of Search, Return and Sort Expressions> B.3 Search Expressions

B.3.6 Numeric Values

This method searches for documents by extracting the numeric component from the value of the element node, the value of text node, or the value of attribute node, and finding documents where this value matches the specified numeric value or documents where the specified size relationship holds. The numeric component is automatically extracted from the value of the element node, the value of text node, or the value of attribute node, and so this method can be used to search for numeric values that have been written in various ways.

The following figure shows the definition for numeric values.

[Figure B-16 Number Definition]

mark1Numbers

For numbers, specify a digit between 0 and 9 inclusive.

mark1Numeric Comparisons

Numeric comparisons extract the numeric component from the value of the element node specified by the path expression, the value of the text node specified by the text expression, or the value of the attribute node specified by the attribute expression, and compare this value to the numeric specified in the keyword.

Example

/doc/money = 1000

Evaluates to TRUE if the numeric component extracted from the value of the element node represented by 'doc/money' matches 1000.

In the following example, the value of the element node specified by the path expression contains multiple numeric values. In such cases, only the first numeric value is extracted.

Document A

<money>ABC123,456@789</money>

123456 is extracted.

Document B

<money>123456 7890123</money>

123456 is extracted.

Document C

<money>1,500 yen</money>

1500 is extracted.


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006