Hi,
do you mean you want to search the whole document content (not content of a single sub-level element)?
You need an index of type “text” on the root element of you schema. Then Tamino builds a text-index for every word in every document you store in this schema.
Then you can do index-supported querying, which would look like this in XQL (say your root element is “chapter”):
_xql=chapter[.~=“Excalibur”]
which means “gimme every chapter that contains (~=) the word Excalibur”.
You can go wild with wildcard ():
_xql=chapter[.~=“calibur"]
_xql=chapter[.~="Excali”]
_xql=chapter[.~="Exbur"]
Index-supported, all of these queries are fast even with thousands of documents. But beware of leading and trailing asterisk in one query, like this:
_xql=chapter[.~=“cali”]
This is called a word fragment search and this is by default not index-supported. If you need index-support for such queries, you should engange “word fragment index” (to be found the database properties section in Tamino Manager). It can be enabled for the whole database only, and it somewhat slows down processing of inserts. But it makes all kinds of word-fragment searches possible.
Best regards, Andreas
#API-Management#webMethods#Tamino