Or search:
Query
Single term query
This query specifies only one term for retrieving all of the documents which contain that term, for example:
Shardik
AND query
This query specifies two or more terms for retrieving all of the
documents which contain both terms. Insert the
and operator between the terms, e.g.
Aaden and dragons
You can omit the and operator. Terms which are
separated by one ore more spaces are assumed to be an AND query.
OR query
This query specifies two or more terms for retrieving all
documents which contain any one term. Insert the
or operator between the terms,
e.g.
dolphins OR centaurs
NOT query
This query specifies two or more terms for retrieving all of the
documents which contain a first term but do not contain the
following terms. Insert the not
operator between the terms, for example:
dragons NOT Kitty
Grouping
You can group queries by surrounding them by parentheses. The parentheses should be separated by one or more spaces. e.g.
( dolphins OR centaurs ) and Nyssa not Shardik
Phrase searching
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:
{Tails Parzec}
Substring matching
The are three types of searching by substring matching.
- Prefix matching
inter*(terms which begin withinter)- Inside matching
*text*(terms which containtext)- Suffix matching
*net(terms which terminated withnet)
Regular expressions
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.,
/pro(gram|blem)s?/
Notes
- In any queries, Namazu ignores case distinctions of alphabet characters; i.e. Namazu does case-insensitive pattern matching.
- Namazu can handle a term which contains symbols like
P'nyssa. Since this method of handling isn't complete, you can also describe the term asNyssainstead ofP'nyssa, which may not be what you want. - Substring matching and field-specified searching takes more time than other methods.
- If you want to use
and,orornotsimply as terms, you can surround them with double quotes or braces like"..."or{...}.