17 Feb 14:16
Multiple Caches and replace document
Hi,
suppose I have a index and have multiple caches that can be applied to
it. The cache that will be used will be chosen at search time. In this
scenario, how would incremental indexing be affected? I'm looking
IndexerConnection.replace method and have seen this:
if self._index.get_metadata('_xappy_hascache'):
if store_only:
# Remove any cached items from the cache - the document
is no
# longer wanted in search results.
self._remove_cached_items(id, xapid)
else:
# Copy any cached query items over to the new document.
olddoc, olddocid = self._get_xapdoc(id, xapid)
if olddoc is not None:
for value in olddoc.values():
if value.num < self._cache_manager_slot_start:
continue
xapdoc.add_value(value.num, value.value)
we can remove documents from our multiple caches, but I don't know
what should I do when the document is modified.
--
--
You received this message because you are subscribed to the Google Groups "xappy-discuss" group.
To post to this group, send email to xappy-discuss@...
To unsubscribe from this group, send email to xappy-discuss+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/xappy-discuss?hl=en.
RSS Feed