[Xapian-tickets] [Xapian] #167: Add mode to query parser to search for both stemmed and unstemmed forms

Xapian nobody at xapian.org
Thu Apr 26 00:24:15 BST 2018


#167: Add mode to query parser to search for both stemmed and unstemmed forms
-------------------------+------------------------------
 Reporter:  richard      |             Owner:  olly
     Type:  enhancement  |            Status:  assigned
 Priority:  normal       |         Milestone:  1.4.x
Component:  QueryParser  |           Version:  SVN trunk
 Severity:  minor        |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+------------------------------

Comment (by olly):

 Some thoughts on a plan of attack (from an IRC discussion):

 I'd suggest first just getting the parser to generate `<term> OR
 <stemmed_term>` and worrying about the best way to weight it once that's
 working.

 The parser is in `xapian-core/queryparser/queryparser.lemony` and uses the
 lemon parser generator )which is similar to yacc and bison).

 I think this probably wants to happen in the same places that auto
 synonyms do, so look at `Term::get_query_with_auto_synonyms()` to start
 with.

--
Ticket URL: <https://trac.xapian.org/ticket/167#comment:6>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list