[Xapian-discuss] More than one Index?

Olly Betts olly at survex.com
Sat Feb 4 04:37:33 GMT 2006


On Mon, Jan 30, 2006 at 03:17:50PM +0000, John Wards wrote:
> The while loop is rubbish and doesn't work I know as its just guessed
> from looking at the mset iterator in the simple search example

The wdf isn't meaningful (there's no document context here) so will just
return 0, and the description is really dull.  But you probably *DO*
want the term's name!  This works for me:

  $database = new_Database("/home2/omega/boris2");
  $i = database_allterms_begin($database);
  while (!termiterator_equals($i, database_allterms_end($database))) {
      echo termiterator_get_term($i)." : ".termiterator_get_termfreq($i)."\n";
      termiterator_next($i);
  }
 
Cheers,
    Olly



More information about the Xapian-discuss mailing list