Query Parsers

K2 offers a number of different query parsers for your application to use. Each parser provides different search capabilities. Note that the same search query can yield different results with different parsers.

Simple query parser (full-text parser). This is the standard parser for text searches and for searches over document fields and zones. It has full support for VQL.

 

Free-text query parser. This parser automatically performs a stemmed search, and it scores results based solely on term frequency in the document. Simple, short words in the query term are stripped out before the search is conducted. This parser does not support VQL operators.

 

Internet-style query parser. This parser lets users enter familiar Web-search-style commands to find information. It supports case-insensitive searching, quoted phrases, natural-language questions, and the use of plus and minus signs to include or exclude specific terms. The Internet-style query parser does not support VQL operators.

 

BooleanPlus query parser (explicit parser). This parser is similar to the simple parser in that it supports all of VQL and it supports field and zone searches. Unlike the simple parser, however, this parser requires explicit VQL query syntax in all cases. For this reason, the BooleanPlus query parser typically is not used in end-user search forms.

 

Other kinds of query parsers can be developed and integrated into K2. Query parsers are described in the Verity Query Language and Topic Guide.

Using the simple query parser, your application can apply the types of search described here to one or more indexed collections. Some variations of full-text search are available only if the collections have been indexed with the proper configuration settings.