MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / update

Method update

haystack/backends/__init__.py:84–92  ·  view source on GitHub ↗

Updates the backend when given a SearchIndex and a collection of documents. This method MUST be implemented by each backend, as it will be highly specific to each one.

(self, index, iterable, commit=True)

Source from the content-addressed store, hash-verified

82 self.distance_available = connection_options.get("DISTANCE_AVAILABLE", False)
83
84 def update(self, index, iterable, commit=True):
85 """
86 Updates the backend when given a SearchIndex and a collection of
87 documents.
88
89 This method MUST be implemented by each backend, as it will be highly
90 specific to each one.
91 """
92 raise NotImplementedError
93
94 def remove(self, obj_or_string):
95 """

Callers 7

build_search_kwargsMethod · 0.45
build_search_kwargsMethod · 0.45
__setstate__Method · 0.45
runMethod · 0.45
run_mltMethod · 0.45
run_rawMethod · 0.45
do_updateFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected