[Xapian-tickets] [Xapian] #760: Use lemon %fallback?

Xapian nobody at xapian.org
Fri Apr 13 03:38:51 BST 2018

#760: Use lemon %fallback?
        Reporter:  olly         |      Owner:  olly
            Type:  defect       |     Status:  new
        Priority:  normal       |  Milestone:
       Component:  QueryParser  |    Version:  git master
        Severity:  normal       |   Keywords:
      Blocked By:               |   Blocking:
Operating System:  All          |
 Recent versions of the lemon parser generator have a `%fallback`


 This is potentially useful for handling parsing of operators like `AND`,
 `OR`, `NEAR`, etc while also allowing parsing of pasted text which might
 contain these operators as words (especially an issue when
 `FLAG_BOOLEAN_ANY_CASE` is used and `and`, `or`, `near`, etc are
 recognised as operators).

 One wrinkle is that it would be useful to hook in and detect when this has
 happened so we can provide correction suggestions instead, or say the
 correction has been done but provide a way to undo it.  Maybe that can be
 done by using an intermediate token as the target for `%fallback` which
 records the correction that was done?

Ticket URL: <https://trac.xapian.org/ticket/760>
Xapian <https://xapian.org/>

More information about the Xapian-tickets mailing list