[Xapian-tickets] [Xapian] #795: treat parenthesized subqueries the same for boolean and probabilistic fields

Xapian nobody at xapian.org
Sun Sep 1 23:23:24 BST 2019


#795: treat parenthesized subqueries the same for boolean and probabilistic
fields
-------------------------+-------------------------
 Reporter:  bremner      |             Owner:  olly
     Type:  enhancement  |            Status:  new
 Priority:  normal       |         Milestone:
Component:  QueryParser  |           Version:
 Severity:  normal       |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+-------------------------

Comment (by olly):

 If this was handled within the !QueryParser then we could track if the
 current prefix is boolean or not and adapt parsing behaviour to suit.

 Mostly a term inside a `foo:(` ... `)` would be parsed as if actually
 prefixed with `foo:`.

 In the non-boolean case, `foo:(abc bar:xyz)` switches prefix for `xyz`, so
 a potential difference is to handle this similarly for boolean prefixes
 for consistency, rather than being parsed like as `foo:bar:xyz`.  But
 maybe the latter is better (in the non-boolean case `:` can't be part of
 the term, though it can be a phrase-generator).

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



More information about the Xapian-tickets mailing list