1 defmodule Pleroma.Search.SearchBackend do
3 Add the object associated with the activity to the search index.
5 The whole activity is passed, to allow filtering on things such as scope.
7 @callback add_to_index(activity :: Pleroma.Activity.t()) :: nil
10 Remove the object from the index.
12 Just the object, as opposed to the whole activity, is passed, since the object
13 is what contains the actual content and there is no need for fitlering when removing
16 @callback remove_from_index(object :: Pleroma.Object.t()) :: nil