Re: Xapian::Termiterator is not working the way it used to with perl
Jim <[email protected]> Mon, 13 Sep 2021 07:32:10 -0400
| Newsgroups | gmane.comp.search.xapian.general |
|---|---|
| Message-ID | <40846709.AMUAAKxQsHgAAAAAAAAAALFigUYAAV8RcXcAAAAAAAoIrQBhPza7@mailjet.com> |
Yes, I used the get_termname() function and it worked like a charm, almost. Actually that gave me the answer I needed but the loop kept quitting with a SEGV. I tracked it down the the overloaded ++. When I replaced $xit++ with $xit->inc() it kept running. Guess there's more than one problem with overloading. Thanks, Jim. On 9/12/21 9:44 PM, Olly Betts wrote: > On Sun, Sep 12, 2021 at 03:29:05PM -0400, Jim wrote: >> I discovered the answer to this. Search::Xapian is the XS bindings while >> Xapian is the the SWIG generated bindings. Since I couldn't figure out how >> to get DateRangeProcessor or NumberRangeProcessor to work, and I found an >> example that used the SWIG bindings, I switched. That may account for the >> change in behavior of the Termiterator. Is there documentation for the SWIG >> bindings? > Yes, see the POD docs for the Xapian module, e.g.: > > perldoc Xapian > > In particular the COMPATIBILITY section should answer all your questions > about stringification changes. > > (I have just pushed a fix for the misformatting of code snippets > containing `>`). > > Cheers, > Olly