Resultspaces in TEXTML Server
A query retrieves documents from a docbase. A ResultSpace stores the documents that match a query. These documents are (normally) a subset of the documents stored in the docbase. Here is a sample query:
<?xml version="1.0" encoding="utf-16"?>
<!-- OneWordQuery.xml -->
<query VERSION="4.5" RESULTSPACE='OneWordQuery' >
<key NAME="FullText">
<elem>game</elem>
</key>
</query>
You can use <include> to restrict a query's search to the documents stored in the ResultSpace by a previously run query. You can also combine several ResultSpaces in the same query to restrict its search to the combined ResultSpaces:
<?xml version="1.0" encoding="UTF-16"?>
<!-- SampleCombinedResultsQuery.xml -->
<query VERSION="4.5" RESULTSPACE="Combined Results">
<andkey>
<key NAME="FullText">
<frq VALUE="2">
<elem>business<anystr/></elem>
</frq>
</key>
<include TYPE="ResultSpace">Date Search Results</include>
<include TYPE="ResultSpace">Publication and Size Results</include>
</andkey>
</query>
You can combine ResultSpaces together in various ways, by using <andkey>, <orkey>, and <andnotkey>.
Note: A ResultSpace does not contain the actual documents. It is a data structure that
points to the documents in the docbase that match the query. As a result,
searching a ResultSpace is much faster than searching the docbase itself.