diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2018-01-04 20:24:51 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2018-01-04 20:24:51 (GMT) |
commit | a475e4f730a6a60722aaf9ac3f43a4e7d0694b28 (patch) | |
tree | 19d2998abd85a737e210a6830c93601e2f480f61 | |
parent | f94f922497fa7659a98ace96f56a88196a1b3c81 (diff) |
We are already indexing "unknown" (i.e. non-standard) properties so
there's no reason not to support performing exact matches against
them.
-rw-r--r-- | gdatastore/index.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdatastore/index.py b/gdatastore/index.py index 849824f..6651856 100644 --- a/gdatastore/index.py +++ b/gdatastore/index.py @@ -206,8 +206,8 @@ class QueryParser(xapian.QueryParser): info = _STANDARD_VALUES[name] query = self._parse_query_value(info, value) else: - logging.warning('Unknown term: %r=%r', name, value) - continue + prefix = _prefix_for_unknown(name) + query = self._parse_query_term(prefix, value) queries.append(query) |