Creating an Index
Index services have been configured in your system. These can be services for TREX indexes that were contained in the delivery, or index services implemented for other search engines.
You start off in the Index Administration iView.
...
1. Choose Create.
The New Index screen appears.
2. Enter the required data.
Field |
Description |
ID (obligatory) |
Unique ID
|
Name |
Meaningful name This name is displayed in the search options (choose Display Indexes).
|
Group |
An index group includes several indexes. This name is displayed in the search options. More information: Index Groups
|
Crawler Parameters |
The crawler parameters that you select are valid by default for all data sources for this index. However, you can override this setting for individual data sources. Crawler parameters are defined in the configuration of Content Management. More information: Crawlers and Crawler Parameters
|
Service (obligatory) |
Select an index service. By default, you have the choice between a pure search index, a pure classification index, or a combined search and classification index.
|
What to Index |
Specifies which items are to be indexed. ● Only documents (items that are not folders) ● Only folders ● All items You cannot change this setting after saving an index.
You index folders so that they can be included in searches. Folders whose properties match the search term can be displayed in the results list. Folders are not classified in taxonomies. The system indexes folders by their properties, not their content. However, you can enter a content specification for a folder in the Description property.
|
Custom Properties |
See table below.
|
Custom Properties
Property Name |
Permitted Values |
Comments |
fuzziness |
Number between 0 and 1 |
Specifies the degree of fuzziness for the fuzzy search. The smaller the value, the more fuzzy the search. The system creates this property with a default value when you create a TREX search index or search and classification index.
|
IndexInternalLinks |
true or false |
By default, the system does not index internal links. If you set the IndexInternalLinks property to true, the system does index internal links. In this case, the links properties are indexed, but not the link target.
|
searchhidden |
true or false |
You can use this additional property to avoid the indexed documents being displayed in the search results list. You require this additional property when configuring an index for sponsored links. More information: Configuration of the Sponsored Links Function
|
indexContentOfExternalLink |
true or false |
By default, the system indexes all external links in the data sources, but not their target objects. This enables users to find these external links when searching for keywords that are contained in the names of links (or their properties). If you set the IndexContentOfExternalLink property to true, the system also indexes the content of the target objects. This means that users can find these external links when they search for terms contained in the content of the target objects.
|
showWithoutDatasource |
true or false |
In the standard search, the system searches only in indexes to which at least one data source is assigned. The advanced search displays only indexes to which at least one data source is assigned. If you set this value to true, the index is searched in the standard search and displayed in the advanced search even if no data source is assigned to it.
|
queryExtender |
Path to the Java class |
You can use this property to link the user’s search query with another search query that you have defined in a Java class. The user's search query and the search query in the class are linked using AND. Your Java class must be derived from the following class: com.sapportals.wcm.service. For an example, see Extending the Search Query. |
langPropId |
ID for a property
with type String that is predefined in the
property metadata service and that can take only one value
(single-valued). Specify the
property in the following format: <namespacealias>: |
Specify a document property that allows authors to specify the language of a document. The allowed values are defined in the index management service (Supported Languages parameter). Enter them into the document property configuration in the Allowed Values parameter. During indexing, the system checks whether or not the specified document property contains one of the allowed values. If the answer is yes, the system indexes the document in the corresponding language index. If the answer is no, TREX runs an automatic language identification check on the document before indexing it in the corresponding language index. Example: langPropId=mynamespace:myLanguage |
contentUrlProp |
ID for a property
with type String that is predefined in the
property metadata service and that can take only one value
(single-valued). Specify the
property in the following format: <namespacealias>: |
You can specify a URL in a document property from which TREX is to retrieve the content to be indexed. For all documents that this property is set for, TREX gets the content to be indexed from the URL that is specified in the property value.
|
3. Choose New Index.
The system creates the index. You can now assign data sources to it.
