orkey (index inclusion operator)

The orkey operator is used to locate documents containing any of the specified values (words, strings, dates, times or numbers) from two or more indexes.

The orkey operator is specified with the <orkey> element. Indexes in which the search is performed and searched values are defined as children of <orkey>.

This sample query retrieves news stories that

  • Contain Wireless in the headline, OR
  • Were published in July 2000.
?xml version="1.0" encoding="UTF-16"?>
<!-- orkeyQuery.xml -->
<query VERSION="4.5" RESULTSPACE="orkeyQuery"> 
    <orkey> 
        <key NAME="Headline"> 
            <elem>Wireless</elem> 
        </key> 
        <key NAME="Date"> 
            <date>
                <year>2000</year>
                <month>07></month>
            </date>
        </key> 
     </orkey> 
</query>