Distributing AFSearch

There are 2 major ways to distribute AFSearch.  You may either setup AFSearch in a LAN environment for all users to access, or distribute AFSearch with the index files on a CD-ROM. 

The latter option is particularly useful for CD-ROM publishers and content distributors.

In a LAN Environment

AFSearch has full relative path support.  You can move the AFSearch directory anywhere you want, as long as the contents of the folder are unchanged.

Follow these steps to incorporate AFSearch into a LAN environment:

  1. Share a folder on the server for storing the index.
  2. Find the shared Index Folder using the Network Neighborhood and the full path (e.g. //SERVER_NAME/FOLDERNAME, instead of a local reference like C:\INDEX).
  3. When indexing folders, use the full LAN name again (so that it can be accessed by all users).
  4. After the indexing process is complete, copy afsearch.exe, index.ini, and index.des to all user machines.
  5. When users execute afsearch.exe, Index.ini will automatically use the Index Folder located on the correct LAN path.

For CD-ROM Publishing

AFSearch can run directly from CDROM without any installation. User may search directly from CDROM using AFSearch's search box (application mode), or search within your HTML page with AFSearch forms (localhost mode).

For either option, all necessary files must be copied to the CDROM with exactly the same relative folder structure. You should avoid using driver IDs (e.g. C:\, D:\) for your indexed files and HTML files, as users might have different driver ID for their CDROM drivers.

** please note: for single user license, AFSearch.exe will run in unregister mode when copied to CDROM. Please register multiple-users license if you need to distribute AFSearch on CDROM.

- Copy Files Manually

To use AFSearch on CD-ROM, you can copy all files to CDROM manually, by following the procedures below:

  1. First, create the index file on the local hard disk drive.  Also define your header, footer, and create all necessary frame files if needed.
  2. Do few tests on your local HDD, ensure everything is working as you expected.
  3. Copy the entire directory of AFSearch to the CD-ROM, including all sub-directories
  4. Copy all the document and index directories to the CD-ROM, the relative path of those directories to AFSearch must stay the same.
  5. As long as all files (including the AFSearch files afs-form.exe, afsearch.ini, and all the index and document folders), and the directories in the index are duplicated onto the CD-ROM (relative path supported), users can search directly from the CD-ROM. 
  6. AFSearch will automatically treat the CD-ROM as the hard drive where it originally built the index.
  7. If you need to auto-start AFSearch when user insert the CD to their driver, please refer AFSearch command line parameters.

    Working Example:
    -- start a new index, e.g. D:\files\index\)
    -- Index your files (e.g. D:\files\html\)
    -- click on "Search Form"
    -- in the "FORM_FOLDER" field, browse to your desired "FORM_FOLDER" location (e.g. D:\files\form\)

    After this is done and you tested search works, copy the entire folder to D:\files\ to your CDROM, and you can test searches from the CDROM directly.

- AFSearch Publishing Tool

search publishYou can use the [Publish Files] button to automatically prepare the files for you for CD publishing.

  1. (A) The default is to publish CURRENT ACTIVE index. If you have created multiple file indexes, you can check other indexes you like to publish.
  2. (B) Select [Application Mode] if you want your users to use the AFSearch window to perform keyword searches. AFS-FORM.EXE (Search Only, no indexing function) will be copied to the destination folder.
  3. (B)Select [LocalHost Mode] if you want your users to search inside MSIE, using your HTML files. AFS-HOST.EXE (runtime version, no window, no indexing function) will be copied to the destination folder.
  4. (C) Destination Folder: defines where AFSearch will copy all the index and document files, for later burning to CDROM.
  5. (D) After CD is inserted: creates an autorun.inf file, and open the form file or your selected HTML file automatically when user insert your CDROM into driver.
  6. (E) Current Form Folder: the folder with your HTML form and frame files for searching. This folder will automatically be copied during publishing.