[Xapian-devel] Re: [Xapian-discuss] Fixing issue with PHP5/Windows
olly at survex.com
Wed Apr 4 20:57:46 BST 2007
On Wed, Apr 04, 2007 at 06:59:47PM +0100, James Aylett wrote:
> On Wed, Apr 04, 2007 at 06:47:15PM +0100, Olly Betts wrote:
> > I'm not sure what you're asking (since get_matching_terms() uses
> > MSetIterator internally!)
Actually, it doesn't - it's TermIterator now I think about it. But
I suspect that must be what you meant.
> But with some other stuff. It's the other stuff I'm worried about.
| Have we tested iterating through the get_matching_terms() output
| directly, as opposed to using the MSetIterator to do it internally?
OK, my best guess is that by "get_matching_terms()" you mean
"get_matching_terms_begin() and get_matching_terms_end()" (and by
"MSetIterator" you mean "TermIterator"). The answer to that amended
question is that this reportedly works fine.
If that's not the question you were asking, what was?
> > I thought someone had said that this worked, but I can't find where
> > anyone did, so perhaps I misread one of the mails before:
> > @terms = $enq->get_matching_terms($mset->get_hit(0));
> I thought it hadn't worked, and that this was how we knew where the
> problem was.
I can't see an answer either way on this in the earlier mails - if you
saw it, please point it out.
The other piece of information we definitely do have is that this works:
where foo() returns the same array which the call to
get_matching_terms() is supposed to.
More information about the Xapian-devel