Package org.crosswire.jsword.index.query

The Query package provides JSword with the ability to construct a search request against an Index.

See: Description

Package org.crosswire.jsword.index.query Description

The Query package provides JSword with the ability to construct a search request against an Index. The specific syntax of a query is an implementation detail.

Query

The search request consists of one of the following:

Note: an atom is the smallest unit of search that can be handled directly by the index.

The typical binary operators are:

The uncommon binary operators are:

Query Parsing

The QueryBuilder takes a search request as a string and generates a Query from it. The primary characteristic of the Query builder is to determine the atoms of search and construct a Query appropriately.

Query Decorations

Beyond the above queries, most modern query languages allow for specialized searching using notation that is peculiar to it. The QueryDecorator allows for phrases to be decorated in a way that is appropriate for the Index. The following are the decorations that are currently defined:

Copyright ยจ 2003-2015