Just wanted to mention something about the Perl bindings.<br>
<br>
It seems like when using $enq-&gt;matches($start,$size) you don't get access to other mset methods such as <br>
$mset-&gt;get_matches_estimated. I didn't want to call
$enq-&gt;matches($start,$size) and $enq-&gt;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>
&nbsp; my $enq&nbsp; = $xdb-&gt;enquire($qp-&gt;parse_query($qry));<br>
&nbsp; my $mset = $enq-&gt;get_mset($start,$size);<br>
&nbsp; my @matches;<br>
&nbsp; tie( @matches, 'Search::Xapian::MSet::Tied', $mset );<br>
&nbsp; <br>
&nbsp; foreach my $match ( @matches ) {<br>
&nbsp;&nbsp;&nbsp; my $doc = $match-&gt;get_document();<br>
&nbsp;&nbsp;&nbsp; printf &quot;ID %d %d%% [ %s ]\n&quot;, $match-&gt;get_docid(), $match-&gt;get_percent(), $doc-&gt;get_data();<br>
&nbsp; }<br>
&nbsp; <br>
Is there a better way to iterate through the matches returned by get_mset (using MSetIterator)?<br>
<br>
John<br>