ENG/RUS   Main :: RiSearch :: RiSearch Pro :: RiSearch PHP :: RiSearch SQL :: RiFlex :: RiLax :: RuMor :: Forum

Introduction :: Configuration :: License

Introduction

      RiSearch PHP is a search script for small and medium sites. It is fast enough to search 5000-10000 of pages in less then one second.

Features

  1. Does not requre database backend for index storage.

  2. Template driven output.

  3. Indexing via the local filesystem or via http.

  4. Simple and convenient query language.

  5. Script uses platform independent binary files which can be used on any system. Therefore, it is possible to index local copy of your site on your home computer under Windows, and then use produced files on remote server.

Query language

      Keywords should be written with commas or spaces between them. The case is not important.
      The search type "AND" means that RiSearch will find files which contain ALL keywords. The search type "OR" means that script will find all files which contain at least one keyword. In any search regime mark "+" before keyword means that this keyword should be in returned pages. In order to exclude word from results type "-" before keyword, for example "+perl -CGI".
      By default script will return any files where it finds the keywords. For example, if you ask "port", RiSearch will find all pages with words "port", "important", "portrait", "sport", "report" and so on (look at "Indexing" guide). If you wish to find exact word, put exclamation mark after keyword: "port!".

Performance

      RiSearch PHP is intended for small sites (up to 5000-10000 pages). Most queries for such site will be served in less than one second. If your site has more than 10000 pages, look at faster script RiSearch Pro, which is written in Perl, but has PHP frontend. RiSearch Pro also has many additional features:

  • RiSearch Pro can index about 100000 files.
  • Smaller memory requirements.
  • Incremental indexing, including possibility to automatically restart script on servers, where scripts can't run long time.
  • Results sorting by relevancy, file size, date.
  • Keywords highlighting in output.
  • Indexing of other files formats (PDF, DOC, PS) via external parsers and archives indexing.
  • Phrase search.
  • Search with attributes.

Download

risearch_php-0.2 (last changes 18.04.04)

      This script is a shareware. You are not required to pay for it, however your contributions will be really appreciated. It will provide us resources we need for further development and support of this script. If you like script, you can pay using this PayPal link:

10$

Known problems

  1. If script does not work with non-latin characters, try to add this line at the top of every script and reindex site:
      setlocale(LC_ALL, "ru_RU.CP1251"); 
    where string "ru_RU.CP1251" should be replaced by required locale name.
  2. This script will work only with PHP version >= 4.1.0. For older version (>= 4.0.6 AND <= 4.1.0) function array_key_exists() should be renamed to key_exists(). For older version should be possible to rewrite script using function isset().
  3. Function preg_replace_callback() will work only with PHP version >= 4.0.5. For older version you may delete lines with this function (script will work, but it will not understand special HTML characters).
  4. There could be another incompatibilities, or they may appear later (say thanks to PHP developers, which have habit to rename functions).

History

Ver. 0.2 - 18.04.2004
Search is faster up to 20-30%.
Search terms highlighting.
Ver. 0.1.06 - 17.09.2003
Few bugs fixed.
Ver. 0.1.05 - 26.07.2003
Fixed bug with $no_index_dir.
Ver. 0.1.05 - 10.06.2003
Code cleaning.
Ver. 0.1.04 - 03.02.2003
Fixed bug in spider.l - script works correctly when file does not exist.
Ver. 0.1.03 - 13.01.2003
Several bugs fixed.
Ver. 0.1.02 - 14.12.2002
Fixed bug in search.php - stopwords are excluded from query.
Ver. 0.1.01 - 05.12.2002
Selective indexing added (indexing only selected parts of document).
Ver. 0.1b - 11.11.2002


http://risearch.org S.Tarasov, © 2000-2001