search for: positionlist_end

Displaying 5 results from an estimated 5 matches for "positionlist_end".

2015 Jun 10
1
make check xapian-bindings-1.2.21 & Search-Xapian-1.2.21.0
...5.85 CPU) Result: PASS PASS: t/symbol-test.t ./t/termgenerator.t .. 1/28 # Failed test 2 in ./t/termgenerator.t at line 26 # ./t/termgenerator.t line 26 is: ok( $ti ne $doc->termlist_end()); # Failed test 5 in ./t/termgenerator.t at line 30 # ./t/termgenerator.t line 30 is: ok( $pi ne $ti->positionlist_end() ); # Test 7 got: "Xapian::PositionIterator()" (./t/termgenerator.t at line 32) # Expected: "Xapian::PositionIterator()" # ./t/termgenerator.t line 32 is: ok( ++$pi, $ti->positionlist_end() ); # Failed test 8 in ./t/termgenerator.t at line 34 # ./t/termgenerator.t line 3...
2015 Jul 23
1
Get term from document by position
...the terms, than through all of the positions, something like this: for (term = xapian_database.termlist_begin(docid); term != xapian_database.termlist_end(docid); term++) { for (pos = xapian_database.positionlist_begin(docid, *term); pos != xapian_database.positionlist_end(docid, *term); pos++) { if ( (*pos) == position_of_my_term)) my_term= *term; } } This does what i want, but this cycle takes too long to run. So, may there is a better approach?
2010 Jan 16
1
PHP XapianTermIterator/XapianPositionIterator usage
Hello again, /thanks to Peter for previous response. I've been digging around trying to find sample usage of XapianTermIterator/XapianPositionIterator in PHP. The idea is to code up a test case in PHP to perform snippet extraction (with a possible view to coding a pecl extension in C). I found a C++ sample, but that wasn't much help. I must be dense this morning though, since I
2009 Jan 27
1
Segmentation fault in MSetIterator get_weight
Hi, I'm using xapian with c# and mono and i'm having a segfault in get_weight. When i print the index variable, the value is clearly too high. I think something write over it. Do you have any idea on how i could trace the beginning of the segmentation fault ? Thanks, -- Yann
2009 Feb 12
1
problem when using xapian's static libs in windows
...tabase.obj) : error LNK2019: ????????? "public: __thiscall Xapian::PositionIterator::PositionIterator(class Xapian::PositionIterator::Internal *)" (??0PositionIterator at Xapian@@QAE at PAVInternal@01@@Z)??????? "public: class Xapian::PositionIterator __thiscall Xapian::TermIterator::positionlist_end(void)const " (?positionlist_end at TermIterator@Xapian@@QBE?AVPositionIterator at 2@XZ) ???? libnet.lib(serialise.obj) : error LNK2001: ????????? "public: __thiscall Xapian::PositionIterator::PositionIterator(class Xapian::PositionIterator::Internal *)" (??0PositionIterator at Xapian...