Opened 14 years ago

Last modified 13 years ago

#562 closed enhancement

QueryParser incorrectly generates stemmed terms for prefixed fields — at Initial Version

Reported by: Vitaliy Filippov Owned by: Olly Betts
Priority: normal Milestone: 1.2.11
Component: QueryParser Version: 1.2.6
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

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.

Change History (1)

by Vitaliy Filippov, 14 years ago

Attachment: patch-bug562.diff added

Patch to fix this bug

Note: See TracTickets for help on using tickets.