SAP Function TREX_EXT_CREATE_INDEX - Create Index

Parameter Reference Type Length Default Optional Text
I_ALL_ATTRS_FREESTYLE TREX_RFC-BOOLEAN N 1 0 X 1: All attributes are free-style relevant
I_ANALYZER_TYPE TREX_RFC-ANALYZER_TYPE C 3 '' X '': default, 0: fast analyzer, 2: standard analyzer
I_ATTRIBUTE_DEFINITIONS TREXT_ATTR_DEF h 144 X Attribut definitions
I_AUTO_CREATE_LANGUAGES TREX_RFC-FLAG C 1 'X' X 'X': Language indexes are created automatically
I_CONCAT_ATTRIBUTES TREXT_CONCAT_ATTRIBUTES h 129 X Concatenate Attributes
I_CREATE_ON_SAME_LOCATION_AS TREXD_INDEX_ID C 64 '' X Index will be created on same location as given index
I_DESCRIPTION TREX_RFC-DESCRIPTION C 64 X Description
I_DIRECT_USE TREX_RFC-BOOLEAN N 1 '0' X 0: copy data from importPath to default location 1: don't copy, use data direct
I_DOCS_CHANGE_LANGUAGE TREX_RFC-BOOLEAN N 1 0 X 1: deindex doc before reindexing
I_DUPLICATE_DETECTION TREX_RFC-FLAG C 1 '' X 'X': Duplicate documents are checked
I_ESTIMATED_SIZE TREX_RFC-NUMC I 4 0 X Estimated index size (for splitted indexes)
I_EXTENSIONS TREXT_EXTENSIONS h 64 X Optional: Extension definition
I_FAST_PREPROCESSING TREX_RFC-FLAG C 1 '' X 1: index text without preprocessor
I_FAST_UPDATE_WITH_TEMP_DELTA TREX_RFC-BOOLEAN N 1 0 X Optional: Use btree implementation for temp delta indexes (fast update)
I_FREESTYLE_SEARCH_ATTRIBUTES TREXT_ATTRIBUTES h 64 X Optional: default attributes where freestyle search is carried out
I_FREESTYLE_SEARCH_ATTRIBUTES2 TREXT_FREESTYLE_ATTRIBUTES h 68 X Freestyle Attributes
I_HIERARCHY_METADATA TREXS_HIERARCHY_METADATA u 592 X Hierarchy metadata
I_IMPORT_PATH TREX_RFC-PATH C 1024 X Path where the import should read
I_IMPORT_WRITABLE TREX_RFC-BOOLEAN N 1 '1' X 0: index will be just readable 1: create also write version
I_INDEXSERVER_LOCATION TREX_RFC-LOCATION C 20 X Host and Port of the Index Server (Host:Port)
I_INDEX_ID TREX_RFC-INDEX_ID C 64 IndexId: a-z, 0-9, '_', '-'
I_INDEX_TYPE TREX_RFC-FLAG C 1 '0' X 0: Physical Index, 1: Logical Index, 2:Temporary index
I_INSERT_ONLY TREX_RFC-FLAG C 1 '0' X Optional: 0 or 1, 1: documents are only inserted (never updated)
I_IS_PUBLIC TREX_RFC-FLAG C 1 'X' X 'X': Index is published
I_IS_SEARCHABLE TREX_RFC-FLAG C 1 'X' X 'X': searching is possible in the index
I_KEEP_CONTENT TREX_RFC-FLAG C 1 'X' X 'X': Document content is stored
I_KEEP_LUW TREX_RFC-FLAG C 1 '' X Only for debugging: keep logical unit of work
I_KEY_ATTRIBUTES TREXT_ATTRIBUTES h 64 X Optional: Attributes that make up the document key
I_LANGUAGE TREX_RFC-LANGUAGE C 2 'EN' X Language DE (German), EN (Englisch)
I_LANGUAGE_INDEXES TREXT_INDEXES h 84 X Optional: language/logical indexes
I_LIFETIME_FOR_TEMP_INDEX TREX_RFC-NUMC10 N 10 0 X Lifetime (only for temporary indexes) in seconds
I_LOGICAL_INDEX_TYPE TREX_RFC-FLAG C 1 '0' X 0: Splitted Index, 1: Language Index, 2: Join Index, 3: Olap Index
I_MEMORY_INDEX TREX_RFC-FLAG C 1 X 'X': Index only in memory
I_MULTILANG_DOCS TREX_RFC-FLAG C 1 '' X Optional: Docs with same key, but different language allowed
I_NO_PHYSICAL_INDEXES TREX_RFC-NUMC I 4 X number of physical indexes to be created
I_NUMBER_SEPARATOR TREX_RFC-SEPARATOR C 50 '' X Number separators for TREXPreprocesso
I_PARTITION_ATTRIBUTES TREXT_ATTRIBUTES h 64 X partition attr. (partitioned with this attr. as hash key)
I_PARTITION_SPECIFICATION STRING g 0 X
I_PATTERN_QUERIES_USE_CP TREX_RFC-BOOLEAN N 1 X 0: falsch, 1: wahr
I_PHYSICAL_INDEXES TREXT_INDEXES h 84 X Optional: splitted/logical indexes
I_PRECALCULATE_FEATURES TREX_RFC-FLAG C 1 X 'X': Document features are calculated and stored
I_PRELOAD_ATTRIBUTES TREXT_ATTRIBUTES h 64 X Optional:
I_PRELOAD_LANGUAGES TREXT_LANGUAGES h 2 X Optional:
I_QUEUESERVER_LOCATION TREX_RFC-LOCATION C 20 X Host and Port of the Queue Server (Host:Port)
I_RANGE_ATTRIBUTES TREXT_RANGE_ATTRIBUTES h 256 X Range attributes
I_RFC_DESTINATION TREX_RFC-RFC_DESTINATION C 32 RFC Destination
I_SIZE_FOR_DELTA_INDEX TREX_RFC-NUMC I 4 0 X Optional: Maximum no of documents in delta index
I_TEMPLATE_INDEX TREXD_INDEX_ID C 64 '' X Index Id
I_TEXTMINING_RELEVANT TREX_RFC-FLAG C 1 'X' X 'X': Textmining Index is created
I_TOKEN_SEPARATOR TREX_RFC-SEPARATOR C 50 '' X Token separators for TREXPreprocessor
I_USE_EXTERNAL_KEY TREX_RFC-FLAG C 1 '' X Optional: 0 or 1, : create $trexexternalkey$ attribute
I_USE_QUEUESERVER TREX_RFC-FLAG C 1 'X' X 'X': QueueServer is used
I_USE_TEMPORARY_DELTA_INDEXES TREX_RFC-BOOLEAN N 1 0 X Optional: Use temporary delta indexes for speeding up indexing

Parameter Reference Type Length Text
E_RETURN_CODE TREX_RFC-RETURN_CODE I 4 Return code
E_RETURN_TEXT TREX_RFC-RETURN_TEXT C 200 Return text

Exception Text
CONVERSION_ERROR Error during conversion to UTF-8
ERROR Error, see error message

700771TREX 6.1/7.00: How to activate a TREX extension