The BAG.INI file contains information Viewer uses to find the search index for a title. You create the BAG.INI file in the same directory as the project (.MVP) file. The following is a sample BAG.INI file:
[bag.ini]
groupcount=1
group1=USA
[USA]
Indexfile=usa.ind
Title=USA Tour
Near=5
This BAG.INI file has one section labeled [bag.ini] and one section for the USA Tour sample title.
The [bag.ini] section gives the number of books in the title (groupcount) and the name of each project (.MVP) file. Because this example has only one section, groupcount is 1, and group1 gives the book name, USA.
In the [USA] section, you enter the following information:
The name of the search-index file for the title (Indexfile); for the sample, this file is USA.IND. The search-index file should have the same name as your project (.MVP) file with an extension of .IND.
The name of the book; for the sample,“USA Tour.” This name identifies the book in the dialog boxes for the full-text search command. It should be no longer than approximately 40 characters so that it doesn't get truncated in dialog boxes.
The default value for Near if you want Near to have a value other than 8.