Profiling Engine SDK
Operator Reference

Operator Reference
Operator List
Topical List
   
 
Query Language
Introduction
Summary
Operators
Tips, Questions, and Answers
   
 
Main Index
Index
Tutorial
API Functions
Query Language
   
Technology Overview
   
Contact Us
   
 
Other Products
Onix Text Search and Retrieval Engine
Brevity Document Summarizer
Lextek Document Profiler & Categorizer
RouteX Document Routing Engine
Lextek Language Identifier
 

R_ORDERED_NEAR

Name

R_ORDERED_NEAR

Synopsis

Returns records where the listed terms or subqueries are within a specified number of words and are in the same order as listed.

Arguments

Maximum distance between the words
List of terms and subqueries

Ranking Scheme

Ranks using the probabilistic method. The returned weight for hits in a record is the probability of all the terms with the specified weights in a given record being found together. That is calculated by multiplying the probability of those terms not occuring and taking the complement of this.

Comments

R_ORDERED_NEAR combines the features of NEAR and PHRASE. It is like a PHRASE in that each term or subquery must occur in the order they are listed. It differs in that they need not be adjacent. They must, however, be within the specified number of words.

Note that while we say, "within n words," what counts as a word is specified by the indexing process. Each call to prIndexWord increments the word count.

Example

R_ORDERED_NEAR( 3 'blue', 'green' );

See Also

near, r_near, p_near, v_near, ordered_near, r_ordered_near, p_ordered_near, v_ordered_near