Using the synonym index editor - 6.3

Talend Data Fabric Studio User Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
task
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

Talend Studio provides a Synonym Index editor where you can have access to the Lucene index files that you can find in the root directory of the Studio in the following path addons > data > synonym. This editor displays the entries and their related synonyms and provides you with several management icons.

For further information on available data synonym dictionaries, see Data synonym dictionaries.

You can also create such index files using the tSynonymOutput component. For further information on the tSynonymOutput component, see Talend Components Reference Guide .

How to access the synonym index editor and search indexes

Prerequisite(s): You have selected the Profiling perspective in the studio.

To display the Synonym Index editor, do the following:

  1. Select Window > Show View from the menu bar. The [Show View] dialog box opens.

  2. Either:

    • expand the Profiling folder and then select Synonym Index, or,

    • start typing synonym index in the dynamic filter field, the list will display the name of the editor you are looking for.

  3. Select Synonym Index and then click OK to close the dialog box. The Synonym Index editor is displayed.

  4. Click the browse... tab and browse to the index files in the Studio root directory, or to those generated by the tSynonymOutput component.

  5. Click OK to close the search dialog box.

    All the documents (words) and their related synonyms are displayed in the editor, sorted alphabetically. Expand any document to see its related synonyms.

    Note

    The number of words listed in the Synonym Index editor is set to 20 by default. You can configure this parameter in Window > Preferences > Talend > Profiling > Synonym Index View.

  6. To search for any word and its synonyms, type in the word in the Synonym Index Search field and then click search. or press the Enter key.

Warning

You must type in the complete word in the Search field, otherwise nothing will be displayed in the editor.

How to manage documents in the synonym index editor

The icons on top of the synonym index editor give you access to some basic management options that you can carry on the listed documents. The same management options are also accessible via a right-click on any of the listed documents.

How to edit a document

To edit the documents listed in the synonym index editor, do the following:

Either:

  1. Click the icon on top of the editor.

    A red x is displayed next to each document.

  2. If necessary, click the red x next to the document/synonym you want to delete.

Or:

  1. Right-click a document from the list and select Edit. A dialog box is displayed.

  2. Click the [+] or [x] buttons to add or delete a synonym respectively.

  3. Click OK to close the dialog box.

    The document is modified accordingly in the document list in the synonym editor.

  4. Click the save icon on top of the editor to save your changes.

How to insert a new document

To create a new document ( a word and its synonym) and list it in the synonym index editor, do the following:

  1. Click the icon on top of the editor. A dialog box is displayed.

  2. In the Word field, enter a name for the new document (word).

  3. Click the [+] button to add a line where you can type a synonym for the new word.

  4. Click OK to close the dialog box.

    The new document is created and listed in the synonym editor.

  5. Click the save icon on top of the editor to save your changes.

How to delete one or several documents

To delete one or several documents from the document list, do the following:

  1. In the synonym index editor, select the document(s) you want to delete.

  2. Click the icon on top of the editor.

    A dialog box is displayed listing the selected documents.

  3. ClickOK to close the dialog box .

    The selected documents are removed from the synonym index editor.

  4. Click the save icon on top of the editor to save your changes.