Ordering documents


Taking into account phrases
----------------------------

mnoGoSearch assumes that a document contains a phrase N words long, 
if all N words in a document are placed within a range of N+1 words. 
I.e. between N words in a row there may be one word that is not in the query. 
Wordorder withing phrase does not matter.

A complete phrase is the one containing every word from the query.

Factors that are taken into account while calculating relevance of a 
document, in order of their importance in phrase search (indexer.conf 
and search.htm "Phrase yes" command):

1. Number of complete phrases taking into account weight of words it is 
comprised of. In complete phrases search only this factor is taken into 
account, while documents that do not contain complete phrase are not displayed.

2. Number of words from query found in a document. I.e. if there is a query 
of three words, documents containing all three words will have more weight 
than those containing only two or one word from the query. 

In case of AND search all the documents not containing every word from the 
query will not be displayed.

3. Number of incomplete phrases taking into account weight of words they 
consist of.


Not taking into account phrases
----------------------------------

Factors that are taken into account while calculating relevance of a 
document, in order of their importance without phrase search 
(indexer.conf and search.htm "Phrase no" command):

1. Number of words from the query found in a document. I.e. if there is 
a query of three words, documents containing all three words will have 
more weight than those containing only two or one word from the query. 

2. Total weight of words found.

3. Total number of words found in a document.  


Boolean search
--------------

In this version boolean search does not support phrases as a logical unit 
of search query. I.e. query "a b" & "c d" is not recognized as a two phrases 
query. This feature is on our TODO. 
Please note that in case of boolean searching of two or more words, you have 
to enter operators (&, |, ~). I.e. it is necessary to enter "a & book" instead of "a book" (with 
no quotation marks).

CrossWords
----------
This feature allows to assign words between <a href="xxx"> and </a> 
also to a document this link leads to. It works in SQL database mode and 
is not supported in built-in database and Cachemode. To enable Crosswords,
please use "CrossWord yes" command in indexer.conf and search.htm.

$DR template variable
---------------------

$DR template variable displays number of words from the query found 
in a document.

