Changes between Initial Version and Version 5 of Ticket #562


Ignore:
Timestamp:
23/05/12 12:46:31 (13 years ago)
Author:
Olly Betts
Comment:

Half of patch which adds !QueryParser::STEM_ALL_Z applied to trunk in r16626, along with test coverage for the new feature.

Marking to backport to 1.2.11.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #562

    • Property Status newreopened
    • Property Severity majorminor
    • Property Milestone1.2.11
    • Property Type defectenhancement
  • Ticket #562 – Description

    initial v5  
    1 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.
     1!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.
    22
    33Example query: "title:идея".
     
    55Xapian::Query(Sиде:(pos=1))
    66("иде" is the stem for russian word "идея").
    7 But, TermGenerator has indexed stemmed term for title as "ZSиде"! So the search won't return correct results.
     7But, !TermGenerator has indexed stemmed term for title as "ZSиде"! So the search won't return correct results.