Lines Matching refs:opts
1254 function BuildExcerpts($docs, $index, $words, $opts = array()) argument
1259 assert(is_array($opts));
1272 if (!isset($opts["before_match"])) $opts["before_match"] = "<b>";
1273 if (!isset($opts["after_match"])) $opts["after_match"] = "</b>";
1274 if (!isset($opts["chunk_separator"])) $opts["chunk_separator"] = " ... ";
1275 if (!isset($opts["limit"])) $opts["limit"] = 256;
1276 if (!isset($opts["around"])) $opts["around"] = 5;
1277 if (!isset($opts["exact_phrase"])) $opts["exact_phrase"] = false;
1278 if (!isset($opts["single_passage"])) $opts["single_passage"] = false;
1279 if (!isset($opts["use_boundaries"])) $opts["use_boundaries"] = false;
1280 if (!isset($opts["weight_order"])) $opts["weight_order"] = false;
1288 if ($opts["exact_phrase"]) $flags |= 2;
1289 if ($opts["single_passage"]) $flags |= 4;
1290 if ($opts["use_boundaries"]) $flags |= 8;
1291 if ($opts["weight_order"]) $flags |= 16;
1297 $req .= pack("N", strlen($opts["before_match"])) . $opts["before_match"];
1298 $req .= pack("N", strlen($opts["after_match"])) . $opts["after_match"];
1299 $req .= pack("N", strlen($opts["chunk_separator"])) . $opts["chunk_separator"];
1300 $req .= pack("N", (int)$opts["limit"]);
1301 $req .= pack("N", (int)$opts["around"]);