> Main > Products and Services > Purchase > Company
English / Russian

Documentation

CNSearch 1.5.1

© "CN-Software" Ltd. 2002-2008
support@cn-software.com
www.cn-software.com
Previous | Table of Contents  | Next

Grouping Search Results by Sites

When searching though lots of sites of sites, search results can be often overfilled by pages of only one site. For example, for the search phrase "news", all the pages of a news site ending with " // Local news" will be found, and the results from other sites will be moved hundreds or even thousands points back.

In order to avoid this situation, large search engines, such as Google, display only one result form each site. Starting from version 1.5, this option is implemented at CNSearch as well.

To enable grouping by sites, you should add a hidden field group to the search request form:

-- cnsearch.conf ----------------------------------------

....

<BODY>

<table width=400 height=40 align=center bgcolor=#C0C0C0>

<form action="%F" method=get><tr><td align=center>

<input type="text" name="q" size="40" maxlength="64" value="%Q">

<input type="hidden" name="group" value="1">

<input type="submit" value="Search">

</td></form></tr></table>

....

-- end cnsearch.conf ------------------------------------

To allow users to perform more detailed search through one site from the search results, you can use the link "more from the site". It can be implemented by means of a special symbol %I:

-- cnsearch.conf ----------------------------------------

....

::HTMLRESULT

....

<LI>%N. <a href="%U" target=_new>%T</A> <small>

      <font color=red>%S</font> [Relevancy: %R]</small>

      [ <a href="%F?d=%I&q=%G">more from the site</a> ]

<UL>

....

-- end cnsearch.conf ------------------------------------


Previous | Table of Contents  | Next