| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
We are already indexing "unknown" (i.e. non-standard) properties so
there's no reason not to support performing exact matches against
them.
|
|
|
|
|
|
|
|
|
|
| |
When re-indexing entries, take the git commit id into account so that
we notice entries we already know about but where the metadata has
changed.
The first re-index run after an update will need to process all
entries in order to add the commit_id value to the index. This may
take a long time. This change is backwards compatible.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some users may have direct access to additional data stores in
gdatastore format. Allow the user to "register" them by placing links
inside the (new) "extra-stores" directory and use them as additional
sources.
Modification is only supported for the primary store. The additional
ones are used for reading only. In particular, trying to remove an
entry that's contained in an extra store will yield an error (no
shadowing).
The extra stores will need to use exactly the same on-disk format as
the primary one. No automatic migration is done.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With the Sugar 0.84+ API (without version support), there are three
ways to look up the metadata of a single entry:
1. get_properties(uid)
2. find({'uid': uid}, {})
3. find({'query': 'uid:' + uid}, {})
The former two were already supported by explicit conversion inside
the API adapter class.
The last one matches the uid inside a Xapian query string. This is
more tricky to support as the string gets parsed by Xapian, not
ourselves.
We're going the simple route for now and just add a 'uid'
compatibility prefix for our custom Xapian query parser. This will
leak some Sugar API details to other APIs. If any issue comes up
because of that, we'll need to pass in different sets of prefixes to
Index.find() for each query, based on which API was used.
|
|
|
|
| |
Xapian has a hardcoded limit of 245 characters for terms.
|
|
|
|
| |
We accidentally used the value as prefix and vice-versa.
|
|
|
|
| |
Previously it returned only a fixed set of values to satisfy the test suite.
|
| |
|
|
|
|
| |
Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
|
|
|
|
|
|
| |
This should help with situations where the new gdatastore process is already
starting up (on a new session bus) while the old one is still busy shutting
down (see also: SL#1257).
|
|
|