You can search for a phrase that consists of two or more terms
by surrounding them with double quotation marks or braces such as
"..." and {...}.
In Namazu, the precision of phrase searching is not 100 %,
so wrong results may occasionally occur. Example:

You can use regular expressions for pattern matching. The
regular expressions must be surrounded by slashes like /.../. Namazu uses Ruby's regular
regular expressions engine. It generally offers a Perl compatible flavor.
e.g.,

Japanese phrases are automatically segmented into
morphemes and are handled as phrase searching. This process occasionally
causes invalid segmentation.

Letters, numbers or parts of symbols (duplicated in
ASCII) which are defined in JIS X 0208 (Japanese
Industrial Standards) are handled as ASCII characters.

Namazu can handle a term which contains symbols like
TCP/IP. Since this method of handling isn't complete,
you can also describe the term as TCP and IP instead of
TCP/IP, but it may cause noisy results.

Substring matching and field-specified searching takes
more time than other methods.

If you want to use and,
or or not simply as terms, you can
surround them with double quotes or braces like "..." or {...}.