Note
This is a public alpha release, and therefore features and functionality may change and the software and documentation may contain technical bugs or other issues. If you discover any issues please consider registering a GitHub issue.
datasources.search_indexes module¶
This module contains the search index definitions for the datasource app using Haystack.
See https://django-haystack.readthedocs.io/en/master/ for documentation.
-
class
datasources.search_indexes.
DataSourceIndex
[source]¶ Bases:
haystack.indexes.SearchIndex
,haystack.constants.Indexable
The search index definition for a DataSource.
Uses templates/search/indexes/datasources/datasource_text.txt and
datasources.models.DataSource.search_representation()
.-
fields
= {'text': <haystack.fields.CharField object at 0x7f211184a6a0>}¶
-
get_model
()[source]¶ Should return the
Model
class (not an instance) that the rest of theSearchIndex
should use.This method is required & you must override it to return the correct class.
-
objects
= <haystack.manager.SearchIndexManager object>¶
-
text
= <haystack.fields.CharField object>¶
-