Evaluation strategies for Xquery full-text
Imhof, Julia · Repository for Publications and Research Data (ETH Zurich) · 2008
More and more repositories like the IEEE INEX collection [1], LexisNexis [2] or the Library of Congress collection [3] store their documents in XML format.To be able to search over these XML documents, there is a need for efficient and accurate full-text search features.There are two different approaches that could be taken into consideration: On one hand, one could use traditional fulltext approaches, but these are not suitable for XML documents as they do not take the structure of the document into account.On the other hand, one could use XQuery and XPath.These languages can express a variety of queries, but queries over XML text content are limited.Full-text search in XQuery is mainly handled by the function fn:contains($e,keyword) that checks whether the keyword keyword is contained in the element denoted by $e.This function is too limited for complex queries.It cannot express queries e.g.like the following query that includes phrase matching, distance predicates and stemming:Example The sample document contains books (see Appendix A).Find the books that contain the phrases "Beating the Dealer" with stemming and "WIN STRATEGY" with stemming and case insensitive in distance at most 10 words from each other.