> I am wondering whether it is possible to do a sort of reverse lookup
> into the database, to look up all words in the found documents (from an
> original query).
> 3. Extract all words from any doc found in 2. from the search database
Not from htsearch. It's really not how the database is organized. You have
a document DB and a database of:
word1 -> DocID ...
word2 -> DocID ...
So there's no collection of:
DocID -> word1 word2...
However, given the URL of a document, you could probably whip up a Perl
script to generate a list of all unique non-HTML words in the document
after fetching it.
Williams Students Online