--TEST--
CLucene: Hits::score, out of range (lower bound).
--SKIPIF--
<?php

require_once('skipif.inc');

?>
--POST--
--GET--
--INI--
--FILE--
<?php

require_once('param.inc');

$searcher = new IndexSearcher($path, $field);
$query = "Mars";
$hits = $searcher->search($query);

$length = $hits->length();

if ($length > 0) {
    try {
        $score = round($hits->score(-1), 3);
    } catch (Exception $e) {
	var_dump($e->getMessage());
    }
} else {
    echo "no results.";  
}

$searcher->close();

?>
--EXPECT--
string(32) "Seek position -1 is out of range"
