Tamnun Query Syntax

17 June, 2005 at 04:09 Leave a comment

Multiple words
When a query contains multiple words, such as ‘stock plan’, documents which contain all words are sought. These words will not necessarily appear next to each other in returned documents (see below how to search for multi-word phrases).
In other words, you can think of Tamnun doing an AND, or an intersection, of the result sets coming from each query term.

Special fields
When documents are indexed, certain aspects of the document, e.g., the document’s title, are indexed seperately as fields. Fields can be searched explictly, by giving the field’s name, followed by a colon and the word to search. For example, the query title:dog searches for documents with dog in their title.
Fielded terms can be combined in a query like regular query terms. For example title:dog bark searches for documents with dog in their title, and bark somewhere in their content. title:dog title:bark searches for documents whose titles contain both the word dogs and bark. To search for a phrase in a field, only the phrase should be quoted. For example: title:”dog bark”. The following fields are available:
* [doctype: xyz] finds files whose extension is ‘xyz’. Note that as a special case, “htm” finds fileswhose extension is either htm or html (and so does a search for doctype:html).
* [name: filename.txt] finds a file whose name (without the directory part) is filename.txt. Note that currently this name is split on underscores (_), but not on dot, so searching “name:filename” will not find filename.txt, but will find filename_hello.txt.
* [title: word] finds a document whose title (e.g., the HTML <title>…</title>) contains this word.
* [from: name, subject: word, date: word, to: word, cc: word, users: word] are available for searching these fields in Lotus Notes mail messages.

XML Fragments
XML Fragments are small well balanced pieces of a document that are used to query XML documents. For example, if your text document contains the person name ‘Donald Knuth’, and this name is identified by an annotator as being the author of the document (and is indexed as an annotation called ‘author’), you can query this information using the XML tag <author>. Here are some sample fragment queries –
1. <book>’Network security'</book>
Finds books which have a title with the phrase ?Network Security?
2. <book><author>+Donald +Knuth</author></book>
Finds books with author named Donald Knuth, not necessarily as a phrase. The +s ensure that both Donald and Knuth appear under the <author> annotation. This query captures documents that have these words directly as author, as well as documents like <author><firstname>Donald</firstname><lastname>Knuth</lastname></author>
3. <book> +<title>Graphs</title> +<author>Donald</author></book>
Finds books whose title includes Graphs and were written by Donald
4. <title> +<>network security</> +<>database attributes</></title>
The empty tag <> serves as a parenthesis for expressing scope. This query finds documents with a title that refers to network or security (the first +<>network security</>) and to database or attributes (the second +<>database attributes</>).


Entry filed under: Computers/ICT, Glasgow-Travails, Projects, Research.

Ideas for Raising Funds for University eText Center at University of Virginia Library

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


June 2005
« May   Jul »


%d bloggers like this: