Marking of Zones for Full-Text Search


Once you have added a dictionary onto the Bookshelf, you need to index it in order to be able to carry out full-text searches in this dictionary. Click Update Index... in the Dictionaries dialog box to update the index. If you choose not to update the index upon adding the dictionary, the index will be automatically updated when you carry out your first full-text search in the newly added dictionary. User dictionaries are indexed in the same way as system dictionaries.

Note: Index files are stored on the hard disk in the same folder where the dictionary is stored. Make sure that your have write permissions for this folder (for more information on working with indexes, see the Adding User Dictionaries to the Bookshelf section).

To enable Lingvo to carry out full-text searches in the body text of the cards, you must enclose the text in special tags. Otherwise, Lingvo will only look for headwords.

If the structure of your dictionary entries is relatively simple (i.e. they consist merely of a headword followed by some text), you can automatically add [trn] and [/trn] tags to your cards to be able to carry out full-text searches in the dictionary. To do this, select the Create dictionary ready for indexing option in DSL Compiler. In this case, DSL Compiler will place a [trn] tag at the beginning of each card and a [/trn] tag at the end of each card. The syntax of the DSL language prohibits embedding zones of the same type, so before compiling your dictionary make sure that there are no [trn] tags in the entries. DSL Compiler will report a compilation error for each entry with embedded [trn] tags.

If your dictionary entries are complex and have several zones, you need to use special DSL tags to mark these zones:s

In the case of complex dictionary entries with several zones, clear the Create dictionary ready for indexing option in DSL Compiler.