[Xapian-discuss] php and get_termpos (stemming problem?)

Wojewsky, Sascha, Heinze Sascha.Wojewsky at heinze.de
Wed Sep 12 11:01:23 BST 2007


Hi,

 

I've not found a solution in the mailinglist...

 

I've a problem with the "get_termpos" Function in php.

I've used this code:

...

$i = $mset->begin();

while (!$i->equals($mset->end())) {

  $terms = $enquire->get_matching_terms_begin($i->get_docid());

  $pos = $database->positionlist_begin($i->get_docid(),
$terms->get_term());

  if (!$pos->equals($database->positionlist_end($i->get_docid(),
$terms->get_term()))) {

     $pos = $pos->get_termpos();

  }

}

...

 

But the if condition was always false.

 

The term (searchstring) from "$terms->get_term()" starts with the
stemming-"Z". 

If I've called $database->positionlist_end($i->get_docid(),
'seachstring') without the leading "Z", I've got a result.

 

I'm using xapian 1.02.

 

Do you have any solution?

 

Thanks.

 

Sascha Wojewsky 
 
Geschaftsfuhrer: Dirk Schoning | Sven Hohmann
Handelsregister: Amtsgericht Luneburg | HRB 100051 
Bauprodukte und Informationen
online im HeinzeBauOffice


Diese E-Mail enthalt vertrauliche und/oder rechtlich geschutzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtumlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind nicht gestattet. 
 
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


More information about the Xapian-discuss mailing list