Displaying 1 result from an estimated 1 matches for "position_iterator".
2010 Jan 16
1
PHP XapianTermIterator/XapianPositionIterator usage
...#39;t much
help.
I must be dense this morning though, since I can't get my head around how to
use XapianTermIterator to step through the terms, and to iterate through all
the positions of each term with XapianPositionIterator.
Can someone provide a basic PHP example of how to:
//pseudo code
$position_iterator = new XapianPositionIterator();
$term_iterator = new XapianTermIterator();
foreach $term ($position_iterator)
foreach $position ($term_iterator($term))
...
Any assistance would be appreciated.
Thanks