IDOL View Component 12.13

# Index Fields

Store fields that contain text which you want to query frequently as Index fields. Index fields are processed linguistically when they are stored in IDOL Server. This means that stemming and stop word lists are applied to text in Index fields before they are stored, which allows IDOL Server to process queries for these fields more quickly. Typically `DRETITLE` and `DRECONTENT` are fields that are set up as Index fields.

Do not use the Index field type for fields that contain:

- URLs or content that you are unlikely to use.
- content that you query frequently, but whose values you query only in their entirety. It is more efficient to use field specifiers (for example, `MATCH`) to query these values.
- numeric values or dates as Index fields. Instead, store these fields as numeric fields and numeric date type fields.

Related Topics

- NumericType Fields

- NumericDateType Fields

To set up Index fields

1. Open the IDOL Content component configuration file in a text editor.

2. List an indexing process in the `[FieldProcessing]` section. For example:

       [FieldProcessing]
       0=MyFirstProcess
       1=MySecondProcess
       2=IndexingFields

3. Create a section for the indexing process, and in each section, create a property for the process (you define the property later by setting one or more applicable configuration parameters). Identify the fields that you want to associate with the process.

   You can use the `PropertyMatch` parameter to identify a specific value that fields must have to be processed.

   NOTE: The properties that you create must not have the same name as the processes.

   For example:

       [MyFirstProcess]
       Property=MyFirstProperty
       PropertyFieldCSVs=*/MyField,*/MySecondField
       PropertyMatch=*myString*

       [MySecondProcess]
       Property=MySecondProperty
       PropertyFieldCSVs=*/MyOtherField,*/MyOtherSecondField

       [IndexingFields]
       Property=IndexFields
       PropertyFieldCSVs=*/DRECONTENT,*/DRETITLE

4. Create a section for your indexing property in which you set the `Index` parameter to `True`. For example:

       [MyFirstProperty]
       HiddenType=True

       [MySecondProperty]
       Index=True

       [IndexFields]
       Index=True

5. Save and close the configuration file.Restart the IDOL Content component for your changes to take effect.

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.13 | Last updated October 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL IDOL View Component 12.13

Topic Title: Index Fields