[Xapian-discuss] More than one Index?

John Wards j.wards at sportnetwork.net
Mon Jan 30 13:34:13 GMT 2006


On Mon, 2006-01-30 at 12:58 +0000, James Aylett wrote:
> > Also I would like to analyse the property descriptions to see what the
> > most popular descriptive words that Estate Agents use, I have had a look
> > at the API and can't spot anything. I see I can get the number of
> > occurences of a term but I would have to come up the the terms
> > myself..which I suppose I could do but I would rather it was the other
> > way.
> 
> You can get an iterator to all terms in the database using
> Xapian::Database::allterms_begin() (db.allterms_begin() in
> Python). The TermIterator that returns *may* be able to give you a
> frequency in the database via its get_termfreq() method, but I don't
> know if that actually works for the all terms iterator. If not, you
> can use the iterator to get the terms, and use
> Xapian::Database::get_collection_freq() to get the frequency.

How do I get to allterms_begin() in PHP? 

I am a bit lost with the convertion from the API to PHP.

Cheers
John




More information about the Xapian-discuss mailing list