[Xapian-tickets] [Xapian] #562: QueryParser incorrectly generates stemmed terms for prefixed fields

Xapian nobody at xapian.org
Thu Aug 11 16:22:12 BST 2011


#562: QueryParser incorrectly generates stemmed terms for prefixed fields
-------------------------+--------------------------------------------------
 Reporter:  vitalif      |       Owner:  olly 
     Type:  defect       |      Status:  new  
 Priority:  normal       |   Milestone:       
Component:  QueryParser  |     Version:  1.2.6
 Severity:  major        |   Blockedby:       
 Platform:  All          |    Blocking:       
-------------------------+--------------------------------------------------
 QueryParser generates stemmed terms for prefixed fields as "PREFIX +
 stem". But TermGenerator indexes them as "Z + PREFIX + stem", so the
 search on stemmed terms inside prefixed fields returns incorrect results.

 Example query: "title:идея".
 It generates the following query under STEM_ALL:
 Xapian::Query(Sиде:(pos=1))
 ("иде" is the stem for russian word "идея").
 But, TermGenerator has indexed stemmed term for title as "ZSиде"! So the
 search won't return correct results.

-- 
Ticket URL: <http://trac.xapian.org/ticket/562>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list