--TEST--
CLucene: Hits::id.
--SKIPIF--
<?php

require_once('skipif.inc');

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

require_once('param.inc');

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

$length = $hits->length();

if ($length > 0) {
    var_dump($hits->id(0));
} else {
    echo "no results.";  
}

$searcher->close();

?>
--EXPECT--
int(4)
