25.12.2013 Views

Tamino XQuery User Guide - Software AG Documentation

Tamino XQuery User Guide - Software AG Documentation

Tamino XQuery User Guide - Software AG Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Text Retrieval<br />

Rules for Searches Using Phonetic Values and Stemming<br />

For queries that involve phonetics and stemming, <strong>Tamino</strong> internally uses the same mechanism,<br />

implemented as a finite-state machine, that rewrites the function argument according to a set of<br />

rules. These rules are described by XML schemas stored in the collection ino:vocabulary and<br />

have the names PHONRULES and STEMRULES:<br />

This is the schema for PHONRULES:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

This is the schema for STEMRULES:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

So a set of rules consists of a series of ino:phonrule or ino:stemrule elements. The semantics of<br />

a rule are determined by its attributes, all of which are mandatory:<br />

94<br />

<strong>XQuery</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!