You can monitor octree building in the index by verifying the logs and using the
scripts described below.
Specific octree logs are available both MQL and FCS sides:
$MATRIXINSTALL/logs/logOctreeMQL.log
for MQL.
$TOMCATNoCAS/logs/logOctreeFCS.log
for FCS.
You can also find information about octree in the *SLF4J_BOS*
and
*SLF4J_mql*
logs. However, these files are harder to read as they log
other information.
Context: The following procedure does not list all possible options. To know more about these
scripts, use -help
or -h
.
The examples below are for
Linux, they may slightly differ on MS Windows.
-
To identify the missing octree, run:
identifyRepWithMissingOctrees.sh|bat
Note:
To ignore Reps for which the octree computation failed and that are useless to retry, use the
following options: -ignoreEmptyCGRsOrNoTriangles
,
-ignoreEmptyCGRs
, -ignoreCGRsWithNoTriangles
. For
more information, use -h
with this script.
This script calls the Business Analytics Server
search-api
to retrieve information about objects in the index that have
missing octree. Run it from a machine that has access to the Business Analytics Server
search-api
.
The script sends the output of this call to a directory that the
resendToEventMonitor.sh|bat
script can then use to recompute the
octree, as detailed in step 3.
Example: By specifying serverhome
:
./identifyRepWithMissingOctrees.sh
-outfolder /home/data/RTV/crawldir
-cloudviewPort 19010 -host ve4888.3ds.com -protocol http
-serverhome /home/data/RTV/R424install/server
Where:
outfolder
is the output directory that will collect the script
results.
http://ve4888.3ds.com:19010
search-api
-
serverhome
gives the installation path.
Note:
On Windows, there is no need to specify serverhome
because the
path is retrieved from the relative path automatically.
Example: By specifying a JDK and a class path:
./identifyRepWithMissingOctrees.sh
-JDKPath INSTALL/jdk
-cloudviewPort 19010 -host ve4888.3ds.com –protocol
-classPath "SERVERHOME/linux_a64/docs/javaserver/*:SERVERHOME/linux_a64/docs/javacommon/*"
Where:
JDKPath
is the server JDK directory.
http://ve4888.3ds.com:19010
refers to the address of the Business Analytics Server
search-api
classPath
gives the paths of the installation jars.
Note:
On Windows, there is no need to specify
JDKPath
/classPath
because the path is retrieved
from the relative path automatically.
-
To know the number of missing octree, run:
estimateNumberOfMissingOctrees.sh|bat
This script is similar to identifyRepWithMissingOctrees.sh|bat
but
it does not retrieve information about the objects (no file output, only information
printed on screen). It performs a synthesis and quickly returns an estimate of the
number of objects in the index with missing octree. It takes similar parameters as the
identifyRepWithMissingOctrees.sh|bat
script, but does not need an
output directory.
-
To recompute the missing octree, run:
resendToEventMonitor.sh|bat
This script takes as input the output directory of the
identifyRepWithMissingOctrees.sh|bat
script.
Example:
./resendToEventMonitor.sh -user creator
-crawlfolder /home/data/RTV/crawldir
-serverhome /home/data/RTV/R424install/server
Where:
/home/data/RTV/crawldir
comes from the output of the
identifyRepWithMissingOctrees.sh|bat
script.
creator
is the matrix user.
serverhome
is a mandatory option to specify the installation
path.
Note:
On Windows, there is no need to specify serverhome
because the
path is retrieved from the relative path automatically.
This script does not perform any indexing by itself. It sends the indexing
jobs with the missing octree to the event-monitor queue. The next indexing operation
will process them, when you run the start searchindex mode partial
MQL
command.