Hi ~D~
When you're marking entries by inserting XE fields, add an \f switch
in each field code, followed by an identifier. This entry will be
picked up by an INDEX field containing an \f switch with the same
identifier. (This is explained in the Help topics about XE fields and
INDEX fields.)
Unfortunately, you can't do anything in the Mark Index Entry dialog to
make it insert the switch. You have to do it manually in each field
code after it's inserted.
An example may clarify this. Suppose you have the following marked
passage:
The quick brown fox{XE "brown" \f a} jumps over
the lazy dog{XE "dog" \f b}.
Then you insert the following index fields at the end of the document:
-- index a --
{INDEX \c "2" \f a}
-- index b --
{INDEX \c "2" \f b}
When the fields are updated, the results will be
-- index a --
fox, 1
-- index b --
dog, 1
As the Help topic mentions, the default identifier (the one that's
used if there is no \f switch) is 'i'.