Ticket #234 (assigned enhancement)

Opened 10 months ago

Last modified 9 months ago

add an option to specify whether filter terms of a given prefix should be ORed or ANDed together

Reported by: tv+xapian.org Owned by: olly
Priority: normal Milestone:
Component: Omega Version: SVN trunk
Severity: minor Keywords:
Cc: Blocked By:
Operating System: All Blocking:

Description

Hi,

the patch at http://people.debian.org/~tviehmann/list-search/xapian_omega_add_option_filter_defaultop.diff adds an option map to allow overriding the filter behaviour from OR to AND among the terms of a given prefix. For example, if first and last name are indexed with prefix A, I would add

$setmap{filter_defaultop,A,AND}

to the query template in order to be handle first, last, or first and last name entered into the appropriate fields.

Kind regards

Thomas

URL: http://people.debian.org/~tviehmann/list-search/xapian_omega_add_option_filter_defaultop.diff

Attachments

xapian_omega_add_option_filter_defaultop.diff (0.6 kB) - added by tv+xapian.org 10 months ago.
patch as described

Change History

Changed 10 months ago by tv+xapian.org

patch as described

Changed 9 months ago by olly

  • owner changed from newbugs to olly
  • rep_platform changed from PC to All
  • op_sys changed from Linux to All

Changed 9 months ago by olly

  • status changed from new to assigned

Changed 9 months ago by olly

  • summary changed from add an option to specifiy whether filter terms of a given prefix should be ORed or ANDed together to add an option to specify whether filter terms of a given prefix should be ORed or ANDed together

I tend to feel that this particular case would be better handled by allowing Omega to parse the author field probabilistically - the current approach comes from a nasty hack I used for Gmane I believe.

But there might be uses for AND rather than OR on the same prefix, so the patch might still be worthwhile. It would need to be a case where the filter terms are overlapping but not just in a subset/superset way.

Changed 9 months ago by trac

  • platform set to All
Note: See TracTickets for help on using tickets.