Faq/Writer/145

How do I take new occurrences into account in an alphabetical index?
The FAQ entry How to add an alphabetical index to my document explains the creation of an index, how to index words or expressions and how to remove entries.

The update of an index is done via a right-click on the index, then Update index/table in the contextual menu or via the menu  then:


 * Indexes and tables or
 * Current index (if the selection is located in an index) or
 * Update all

However, new occurrences of indexed words are not taken into account during the update. For example, you have the following index in a document:

Marseille.......2,7 Paris...........1,4,10

The text is then modified and you add Paris on page 2. Now you wish to update the index to reflect this addition:

Marseille.......2,7 Paris...........1,2,4,10

However the updating of the index does not include the new instance on page 2, unless of course this new instance has been indexed explicitly.

It is possible to use another technique to overcome this constraint. The solution is to use a Concordance File:


 * 1) edit the index (right-click, then Edit index);
 * 2) under the Type tab, check ☑ Concordance File;
 * 3) from the dropdown menu select ;
 * 4) give a name to the file and save; and
 * 5) add the words you want to index.



Note
 * to modify a concordance file, proceed in the same way:
 * 1) edit the index;
 * 2) on the Index tab, click ; and
 * this technique has several advantages:
 * it avoids having to index words in the document multiple times;
 * it allows you to define once and for all the words you want to index regularly.
 * it allows you to define once and for all the words you want to index regularly.