The search package provides interfaces and methods for indexing, and for searching.
The indexing part builds a searchindex. The search part searches through the searchindex.
See the document userdocs/concepts/xmlsearching.html - XML Searching