//prefix for the gearman queue names, needed when multiple instances
//are running in parallel
'queuePrefix' => '',
+ //show the full text content in the results
+ // useful for chat logs in which every line is its own document
+ 'showFullContent' => false,
);
?>
\ No newline at end of file
$sortCfg = array();
}
+ $contentMatchSize = 100;
+ if ($GLOBALS['phinde']['showFullContent']) {
+ $contentMatchSize = 999999;
+ }
+
$r = new Elasticsearch_Request(
$this->baseUrl . 'document/_search',
\HTTP_Request2::METHOD_GET
'text' => array(
'require_field_match' => false,
'number_of_fragments' => 1,
+ 'fragment_size' => $contentMatchSize,
+ 'no_match_size' => $contentMatchSize,
),
)
),