User Level
System Administrator
Syntax
The command uses this syntax.
CLAUSEs provide additional information about the search
index.
Start Searchindex
You start an indexing process with the Start Searchindex command.
start searchindex mode FULL|PARTIAL [vault PATTERN] [INDEX_MODIFIER {INDEX_MODIFIER}] [modified DATE];
|
mode specifies whether a baseline (FULL)
or incremental (PARTIAL) indexing process is to be
performed. This clause is mandatory.
-
vault specifies the vaults to be indexed. The
PATTERN argument allows you to specify a pattern of
vault names, including a wildcard '*' character. For example, if there were
two vaults named v1 and v2, instead of issuing the command twice, once for
each vault, you could simply issue it once using vault v*.
This clause is optional. For more information, see Status Searchindex.
- where
INDEX_MODIFIER is:Note:
When you use the mode full clause, the system
first clears the index and then creates a baseline. To add vaults to the
index, use mode full with !clear to
skip the clear step and add objects to an existing index.
Update Searchindex
You update a type in the index with a new attribute using the Update Searchindex
command. The syntax for 3DSpace Index is as follows.
update searchindex INDEX_ITEM [vault PATTERN] [selectable SELECTABLE[,SELECTABLE]] [where WHERE_CLAUSE];
|
update searchindex set SET_NAME[,SET_NAME] [vault PATTERN] [where WHERE_CLAUSE];
|
-
vault specifies the vault(s) to be indexed. The
PATTERN argument allows you to specify a pattern of
vault names, including a wildcard '*' character. For example, if there were
two vaults named v1 and v2, instead of issuing the command twice, once for
each vault, you could simply issue it once using vault v*.
This clause is optional. For more information, see Status Searchindex.
-
type specifies the object type to be updated.
- For3DSpace Index, the command
update searchindex type Part, for
example, is the only option to update the index with that new field.
- where INDEX_ITEM is:
- | type TYPE[,TYPE] |
- | relationship RELATIONSHIP[,RELATIONSHIP] |
Status Searchindex
You can check the status of an indexing process with the status
searchindex command. This command polls each FCS Server that it can reach
to see whether there is a persistent queue and if so, reports details of that queue
including its directory.
The status for the Searchindex commands had previously been stored in the vault
property SearchIndexStats. It is stored in the index as a checkpoint. A
checkpoint is much like a property in that it can store an arbitrary string, but
it is also associated with the data that has been committed in the index, so it
ties the vault status to what has been processed in the index.
status searchindex [vault PATTERN] [verbose];
|
-
vault specifies the vault(s) to be indexed. The
PATTERN argument allows you to specify a pattern of
vault names, including a wildcard '*' character. For example, if there
were two vaults named v1 and v2, instead of issuing the command twice,
once for each vault, you could simply issue it once using vault
v*. This clause is optional.
The output of this command includes the start time and duration of the indexing
process, for example:
MQL<4>status searchindex;
test: Complete last indexed: 08/23/2011 20:48:06
number of objects: 1 start: 9/9/2011 5:33:10 PM
duration: 7 seconds
Modify Searchindex
You can change the last_modified time stamp of an indexing process with the
modify searchindex command. This command is useful, for example, if
the last_modified date becomes corrupted or some other issue requires already indexed
data to be re-indexed. The syntax of this command is as follows.
modify searchindex modified DATE [MODIFYINDEX_ITEM];
|
-
DATE specifies the last_modified timestamp of an
incremental indexing operation. This clause is required. The format is
MM/dd/yyyy HH:mm:ss. You will be informed with an error
message if the format of the entered data is incorrect.
-
vault specifies the vaults)to be indexed. This clause is
optional.
- where
MODIFYINDEX_ITEM is:
- | vault PATTERN |
- | serial |
Clear Searchindex
You clear an index from the Advanced Search Server with the clear
searchindex command. This command clears the persistent queue on each FCS
Server that it can reach.
clear searchindex;
|
clear searchindex CLEARINDEX_ITEM [vault PATTERN];
|
-
vault specifies the vault(s) to be indexed. The
PATTERN argument allows you to specify a pattern of
vault names, including a wildcard '*' character. For example, if there were
two vaults named v1 and v2, instead of issuing the command twice, once for
each vault, you could simply issue it once using vault v*.
This clause is optional. For more information, see Status Searchindex.
- where
CLEARINDEX_ITEM is | statsonly
|
Validate Searchindex
You can validate the search index with the validate searchindex
command.
validate searchindex [vault PATTERN] [type|relationship] [interval START_TIME END_TIME];
|
The validate searchindex command takes the 3DSpace Index High Availability configuration into account and produces separate
validation reports for the primary and the secondary indexes.
This command generates a tcl script that can be used to repair the index. This
tcl script contains the physicalids of all business objects and/or connections
that are missing in the index. Once the script is launched, these business
objects and/or connections are logged as custom events in the event monitor. The
event monitor mechanism then triggers the incremental indexing of these custom
events.
All logs and repair scripts are stored in the
logs/sxi/validate/<tenantname>/validate_<timestamp>.zip.
The generated logs are: validate_searchindex_counts*.log,
validate_searchindex_objects*.log and
validate_searchindex_repair*.log (which contains the oids
of business objects or connections that need to repaired). Executing the
validate searchindex command multiple times will therefore
generate multiple zip files under
logs/sxi/validate/<tenantname>. Each zip filename
will have the timestamp at which it was generated.
For High Availability cases, the zip will include the primary validate logs, the
secondary validate logs, the primary index repair script, and the secondary
index repair script. Note:
In high availability mode, the
validate searchindex command does not generate any
files for the primary server if the primary server is down.
In
multi-build group configurations, the zip includes one zip file for every
collabspace server group combination with the associated host.
For example, for the following high availability configuration with multiple
collabspaces: <SERVER baseport="21000" buildgroup="bg0" host="host1" searchtarget="st0" collabspacegroup="collabspace1,sharedcollabspace" default="true"/>
<SERVER baseport="21000" buildgroup="bg1" host="host2" searchtarget="st1" collabspacegroup=" collabspace1,sharedcollabspace " default="true"/>
<SERVER baseport="22000" buildgroup="bg0" host="host2" searchtarget="st0" collabspacegroup="sharedcollabspace,collabspace2"/>
<SERVER baseport="22000" buildgroup="bg1" host="host1" searchtarget="st1" collabspacegroup="sharedcollabspace,collabspace2"/>
The above configuration generates a validate zip file, which contains the below
zip files:
validate_1687569849186_cssg_collabspace1_vsg__host1_21000_host2_21000.zip,
corresponding to validate of collabspace collabspace1
using host1:21000(bg0) and
host2:21000(bg1).
validate_1687569849186_cssg_collabspace2_vsg__host2_22000_host1_22000.zip,
corresponding to validate of collabspace collabspace2
using host2:22000(bg0) and
host1:22000(bg1).
validate_1687569849186_cssg_sharedcollabspace_vsg__host1_21000_host2_21000.zip,
corresponding to validate of collabspace
sharedcollabspace using
host1:21000(bg0) and
host2:21000(bg1).
validate_1687569849186_cssg_sharedcollabspace_vsg__host2_22000_host1_22000.zip,
corresponding to validate of collabspace
sharedcollabspace using
host2:22000(bg0) and
host1:22000(bg1).
validate_1687569849186_cssg__vsg__host1_21000_host2_21000.zip,
corresponding to validate of all other collabspaces on servers with
default=true, that is,
host1:21000(bg0) and
host2:21000(bg1).
The following system environment variables allow you to control the default
behavior of the validate searchindex command. They must be
added into the mxEnv.sh file (for Linux) or the
enovia.ini file (for MS Windows).
| Environment variable |
Description |
MX_VALIDATE_MAX_FILEINDEXING_VALIDATIONS
|
Configure this variable to set the maximum number of objects
having missing files that can be validated.
By default, the validate searchindex command
validates file indexing up to 5000 validations.
|
MX_VALIDATE_FORCE_OBJECT_VALIDATIONS
|
By default, the variable value is
false. Defining this variable to
true forces the validation of missing
objects in the index. |
Print Searchindex
You can print the config.xml file currently stored in the
database with the print system searchindex command.
print searchindex [field FIELD|*];
|
|