Package WholeCellKB :: Package public :: Module search_indexes :: Class EntryIndex
[hide private]
[frames] | no frames]

Class EntryIndex

source code


Nested Classes [hide private]
  Meta

Inherited from haystack.indexes.SearchIndex: __metaclass__

Instance Methods [hide private]
 
get_updated_field(self)
Get the field name that represents the updated date for the model.
source code
 
prepare(self, object)
Fetches and adds/alters data before indexing.
source code

Inherited from haystack.indexes.ModelSearchIndex: __init__, get_fields, get_index_fieldname, should_skip_field

Inherited from haystack.indexes.SearchIndex: clear, full_prepare, get_content_field, get_field_weights, index_queryset, load_all_queryset, read_queryset, reindex, remove_object, should_update, update, update_object

Inherited from haystack.indexes.SearchIndex (private): _setup_delete, _setup_save, _teardown_delete, _teardown_save

Class Variables [hide private]

Inherited from haystack.indexes.ModelSearchIndex: fields_to_skip, text

Method Details [hide private]

get_updated_field(self)

source code 

Get the field name that represents the updated date for the model.

If specified, this is used by the reindex command to filter out results
from the QuerySet, enabling you to reindex only recent records. This
method should either return None (reindex everything always) or a
string of the Model's DateField/DateTimeField name.

Overrides: haystack.indexes.SearchIndex.get_updated_field
(inherited documentation)

prepare(self, object)

source code 

Fetches and adds/alters data before indexing.

Overrides: haystack.indexes.SearchIndex.prepare
(inherited documentation)