Optimizing the index reduces fragmentation and may significantly increase the speed of searches. In general, the fragmentation percentage should be less than 50%. A higher percentage indicates that search performance is compromised. If it is over 75%, then you should optimize the index as soon as possible.
Optimization of a very large index may take several hours. Schedule optimization during hours of low usage to ensures minimal disruption to users.
Universal
Property | Value |
---|---|
endTime |
The date and time that the last optimization ended, in the form
Day, DD Mon YYYY, HH:MM:SS GMT |
startTime |
The date and time that the last optimization started, in the same form as endTime |
status |
DISABLED , EXECUTING , FAILED , LAUNCHING , SCHEDULED , or STOPPED |
activate deactivate export getState start update
Global Settings - Index Optimization
The <search:indexOptimizer>
element describes index optimization:
<search:indexOptimizer> <search:frequency> <!-- For hourly optimization --> <search:hourly> <search:hoursBtwnLaunches> <!-- For daily optimization --> <search:daily> <search:daysBtwnLaunches> <search:startHour> <!-- For weekly optimization --> <search:weekly> <search:weeksBtwnLaunches> <search:startDayOfWeek> <search:startHour> <!-- For monthly optimization --> <search:monthly> <search:monthsBtwnLaunches> <search:startDayOfMonth> <search:startHour> <!-- For all frequencies --> <search:duration> <search:maxHours>
Element Descriptions
Describes index optimization schedule. It contains these elements:
<search:frequency> <search:duration>
Describes the optimization schedule. It contains one of these elements:
<search:hourly> <search:daily> <search:weekly> <search:monthly>
Describes an hourly schedule. It contains a <search:hoursBtwnLaunches>
element.
The number of hours between optimizations.
Describes a daily schedule. It contains these elements:
<search:daysBtwnLaunches> <search:startHour>
The number of days between optimizations.
The time the crawl begins using a 24-hour clock, such as 9
for 9:00 a.m. or 23
for 11:00 p.m.
Describes a weekly schedule. It contains these elements:
<search:weeksBtwnLaunches> <search:startDayOfWeek> <search:startHour>
The number of weeks between optimizations.
The day of the week that the crawl begins, such as MONDAY
or TUESDAY
.
Describes a monthly schedule. It contains these elements:
<search:monthsBtwnLaunches> <search:startDayOfMonth> <search:startHour>
The number of time periods between starting a crawl.
An integer value for the day of the month that the crawl begins, such as 1
or 15
.
Controls the duration of the optimization process. It contains a <search:maxhours>
element.
Attribute | Value |
---|---|
haslimit |
Set to true to enforce the time limit, or set to false to allow the process to finish. Required. |
The number of hours the optimization process is allowed to continue. For best results, allow the optimization to finish.
This XML document contains the index optimizer settings:
<?xml version="1.0" encoding="UTF-8"?> <search:config productVersion="11.1.2.2.0" xmlns:search="http://xmlns.oracle.com/search"> <search:indexOptimizer> <search:frequency> <search:weekly> <search:weeksBtwnLaunches>3</search:weeksBtwnLaunches> <search:startDayOfWeek>MONDAY</search:startDayOfWeek> <search:startHour>23</search:startHour> </search:weekly> </search:frequency> <search:duration haslimit="true"> <search:maxHours>8</search:maxHours> </search:duration> </search:indexOptimizer> </search:config>