Just wanted to mention something about the Perl bindings.<br>
<br>
It seems like when using $enq->matches($start,$size) you don't get access to other mset methods such as <br>
$mset->get_matches_estimated. I didn't want to call
$enq->matches($start,$size) and $enq->get_mset($start,$size)
since that would be running the query twice so I ended up pulling the
code for matches out of enq and doing tie in my code:<br>
<br>
my $enq = $xdb->enquire($qp->parse_query($qry));<br>
my $mset = $enq->get_mset($start,$size);<br>
my @matches;<br>
tie( @matches, 'Search::Xapian::MSet::Tied', $mset );<br>
<br>
foreach my $match ( @matches ) {<br>
my $doc = $match->get_document();<br>
printf "ID %d %d%% [ %s ]\n", $match->get_docid(), $match->get_percent(), $doc->get_data();<br>
}<br>
<br>
Is there a better way to iterate through the matches returned by get_mset (using MSetIterator)?<br>
<br>
John<br>