--TEST--
CLucene: Hits::get, found.
--SKIPIF--
<?php

require_once('skipif.inc');

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

require_once('param.inc');

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

$length = $hits->length();

if ($length > 0) {
    $result = $hits->get(0, 'path');
    if (!is_null($result)) {
	var_dump($result);
    } else {
	echo "The field does not exist.\n";
    }
} else {
    echo "no results.";  
}

$searcher->close();

?>
--EXPECT--
string(19) "data/yogi_berra.txt"
