Line 63 | Line 63 |
---|
'load_search' => 'bool', 'limit_search_load' => 'float', 'min_search_author_chars' => 'integer',
|
'load_search' => 'bool', 'limit_search_load' => 'float', 'min_search_author_chars' => 'integer',
|
| 'max_num_search_keywords' => 'integer',
|
'search_store_results' => 'integer', );
| 'search_store_results' => 'integer', );
|
Line 216 | Line 217 |
---|
'SEARCH_INTERVAL' => (float) $config['search_interval'], 'SEARCH_GUEST_INTERVAL' => (float) $config['search_anonymous_interval'], 'SEARCH_STORE_RESULTS' => (int) $config['search_store_results'],
|
'SEARCH_INTERVAL' => (float) $config['search_interval'], 'SEARCH_GUEST_INTERVAL' => (float) $config['search_anonymous_interval'], 'SEARCH_STORE_RESULTS' => (int) $config['search_store_results'],
|
| 'MAX_NUM_SEARCH_KEYWORDS' => (int) $config['max_num_search_keywords'],
|
'S_SEARCH_TYPES' => $search_options, 'S_YES_SEARCH' => (bool) $config['load_search'],
| 'S_SEARCH_TYPES' => $search_options, 'S_YES_SEARCH' => (bool) $config['load_search'],
|
Line 390 | Line 392 |
---|
AND post_id <= ' . (int) ($post_counter + $this->batch_size); $result = $db->sql_query($sql);
|
AND post_id <= ' . (int) ($post_counter + $this->batch_size); $result = $db->sql_query($sql);
|
while ($row = $db->sql_fetchrow($result))
| $buffer = $db->sql_buffer_nested_transactions();
if ($buffer) { $rows = $db->sql_fetchrowset($result); $rows[] = false; // indicate end of array for while loop below
$db->sql_freeresult($result); }
$i = 0; while ($row = ($buffer ? $rows[$i++] : $db->sql_fetchrow($result)))
|
{ // Indexing enabled for this forum or global announcement? // Global announcements get indexed by default.
| { // Indexing enabled for this forum or global announcement? // Global announcements get indexed by default.
|
Line 400 | Line 413 |
---|
} $row_count++; }
|
} $row_count++; }
|
| if (!$buffer) {
|
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
| }
|
$post_counter += $this->batch_size; }
| $post_counter += $this->batch_size; }
|
Line 591 | Line 607 |
---|
ksort($this->state);
|
ksort($this->state);
|
set_config('search_indexing_state', implode(',', $this->state));
| set_config('search_indexing_state', implode(',', $this->state), true);
|
}
/**
| }
/**
|