When you specify parse and index options for a collection,
you can create index fields to represent data that is common in multiple
sources. By mapping source fields, elements, and facets to the index
fields, you can help ensure that data is consistently retrieved and
returned from the various sources in the collection.
If you change an index field definition after data is added
to the index, you must rebuild the index. If the document cache is
not enabled for an enterprise search collection, you must:
- Restart the crawlers that use the changed index field so that
the documents can be crawled and indexed again.
- Import documents that use the changed index field into the collection
again so that the documents can be indexed again.
Restriction: When you configure a crawler,
the system automatically creates index fields specific to the crawler
type. For example, an index field for the database name is automatically
created when you configure a JDBC database. These field names
are reserved by IBM® Content
Analytics with Enterprise Search and
you cannot specify them as the names of index fields that you add
to the system.
To add an index field and use it in a collection:
- On the Collections view, expand the
collection that you want to edit. In the Parse and Index pane,
click .
- On the Index Field Definitions page,
click Create Index Field.
- On the Create an Index Field page,
select the attributes that you want to use for searching this field
and for viewing the field value in the search results. After
you click OK, your new index field is listed
with the other index fields that are defined for this collection.
Tip: If you select the Faceted search attribute
for a new index field, a facet with the same name as the index field
is created. After the index field is created, you cannot create a
facet by editing the index field definition and selecting the Faceted
search attribute. To map an existing index field to a
facet, create or edit facets in the facet tree.
- Configure facets and sources to use the index field. For example, you can map the index field to a facet, or edit
a crawl space and map a data source field to the index field. As an example, you might map the Owner field in one data
source and the Creator field in another data source to an index field
named Author.
After you map source fields or facets to the index
field, the
Index Field Definitions page shows
you which sources and facets are using the index field. If the
Input
sources and
Facets columns are
not shown, you can edit the index field to see which crawlers and
facets are using the index field. You cannot delete an index field
if input sources and facets are using it.
If you want to change
how a source or facet is using an index field, click the input source
link or facet link. For example, clicking a facet label link opens
the facet configuration page. Links are not available for some input
source types, such as for fields that are added by REST APIs or for
certain types of HTML metadata element mappings.