Full-Text ModelsNormally in KowariTM, searches for literal values in models only succeed when there is an exact match. Lucene is a full-text search engine integrated into Kowari by treating the Lucene index as a model. With full-text models, searches for literal values in models succeed when there is a partial match. The following sections outline how to create, modify, query full-text models, plus the limitations of full-text models. Visit the Lucene System Properties Web site for information on the performance and operational properties you can set. Creating Full-Text ModelsUse the For example, to create the full-text model create <rmi://mysite.com/server1#foo> <http://tucana.org/tucana#LuceneModel>; Note - Specifying no type at all creates a normal Kowari model. Full-text models are removed in exactly the same way as normal models. For example: drop <rmi://mysite.com/server1#foo>; Modifying Full-Text ModelsAs with normal models, use the When inserting statements into a full-text model, the object is the text that is specially indexed for partial matching. If the object is a literal, the text of the literal is indexed. Indexing literals into a model uses the same as for any other model. For example: insert <http://www.mysite.com/somedoc.txt> If the object is a resource, the resource is converted into a URL, the URL is accessed by the server, and the content of the URL is indexed. The resource must have either a insert <http://www.mysite.com/somedoc.txt> To perform full-text searching on literals stored in a normal model, the contents of the normal model must be copied into a full-text model. The following example shows how the document titles stored in the normal model insert select $url <http://www.tucanatech.com/tucana/Document#title> $title If a statement is inserted into a full-text model and the server determines that the MIME type of the document is text/html, then the HTML tags are filtered out before indexing. Note - The ability of Kowari to correctly identify HTML input is limited, and only works when fetching a resource via HTTP from a web server that accurately reports the content type. Use the Querying Full-Text ModelsQueries on full-text models work differently on normal models, as follows:
Given the full-text model select $url $title $score Note - In the example above, the join is performed across the The index files for full-text models are stored in the Limitations of Full-Text ModelsFull-text models are an attempt to make a text index act like a Kowari model, allowing both exact and partial matching to be mixed within queries. Full-text models have the following limitations: |
Latest NewsKowari 1.1.0 Pre-release 1 Released ![]() ![]() |
|||||
© 2001-2004 Tucana Technologies, Inc. Some rights reserved. |