<s> from __future__ import absolute_import , division , print_function , unicode_literals <EOL> from haystack . query import EmptySearchQuerySet , SearchQuerySet <EOL> class SearchIndexManager ( object ) : <EOL> def __init__ ( self , using = None ) : <EOL> super ( SearchIndexManager , self ) . __init__ ( ) <EOL> self . using = using <EOL> def get_search_queryset ( self ) : <EOL> """<STR_LIT>""" <EOL> return SearchQuerySet ( using = self . using ) <EOL> def get_empty_query_set ( self ) : <EOL> return EmptySearchQuerySet ( using = self . using ) <EOL> def all ( self ) : <EOL> return self . get_search_queryset ( ) <EOL> def none ( self ) : <EOL> return self . get_empty_query_set ( ) <EOL> def filter ( self , * args , ** kwargs ) : <EOL> return self . get_search_queryset ( ) . filter ( * args , ** kwargs ) <EOL> def exclude ( self , * args , ** kwargs ) : <EOL> return self . get_search_queryset ( ) . exclude ( * args , ** kwargs ) <EOL> def filter_and ( self , * args , ** kwargs ) : <EOL> return self . get_search_queryset ( ) . filter_and ( * args , ** kwargs ) <EOL> def filter_or ( self , * args , ** kwargs ) : <EOL> return self . get_search_queryset ( ) . filter_or ( * args , ** kwargs ) <EOL> def order_by ( self , * args ) : <EOL> return self . get_search_queryset ( ) . order_by ( * args ) <EOL> def highlight ( self ) : <EOL> return self . get_search_queryset ( ) . highlight ( ) <EOL> def boost ( self , term , boost ) : <EOL> return self . get_search_queryset ( ) . boost ( term , boost ) <EOL> def facet ( self , field ) : <EOL> return self . get_search_queryset ( ) . facet ( field ) <EOL> def within ( self , field , point_1 , point_2 ) : <EOL> return self . get_search_queryset ( ) . within ( field , point_1 , point_2 ) <EOL> def dwithin ( self , field , point , distance ) : <EOL> return self . get_search_queryset ( ) . dwithin ( field , point , distance ) <EOL> def distance ( self , field , point ) : <EOL> return self . get_search_queryset ( ) . distance ( field , point ) <EOL> def date_facet ( self , field , start_date , end_date , gap_by , gap_amount = <NUM_LIT:1> ) : <EOL> return self . get_search_queryset ( ) . date_facet ( field , start_date , end_date , gap_by , gap_amount = <NUM_LIT:1> ) <EOL> def query_facet ( self , field , query ) : <EOL> return self . get_search_queryset ( ) . query_facet ( field , query ) <EOL> def narrow ( self , query ) : <EOL> return self . get_search_queryset ( ) . narrow ( query ) <EOL> def raw_search ( self , query_string , ** kwargs ) : <EOL> return self . get_search_queryset ( ) . raw_search ( query_string , ** kwargs ) <EOL> def load_all ( self ) : <EOL> return self . get_search_queryset ( ) . load_all ( ) <EOL> def auto_query ( self , query_string , fieldname = '<STR_LIT:content>' ) : <EOL> return self . get_search_queryset ( ) . auto_query ( query_string , fieldname = fieldname ) <EOL> def autocomplete ( self , ** kwargs ) : <EOL> return self . get_search_queryset ( ) . autocomplete ( ** kwargs ) <EOL> def using ( self , connection_name ) : <EOL> return self . get_search_queryset ( ) . using ( connection_name ) <EOL> def count ( self ) : <EOL> return self . get_search_queryset ( ) . count ( ) <EOL> def best_match ( self ) : <EOL> return self . get_search_queryset ( ) . best_match ( ) <EOL> def latest ( self , date_field ) : <EOL> return self . get_search_queryset ( ) . latest ( date_field ) <EOL> def more_like_this ( self , model_instance ) : <EOL> return self . get_search_queryset ( ) . more_like_this ( model_instance ) <EOL> def facet_counts ( self ) : <EOL> return self . get_search_queryset ( ) . facet_counts ( ) <EOL> def spelling_suggestion ( self , preferred_query = None ) : <EOL> return self . get_search_queryset ( ) . spelling_suggestion ( preferred_query = None ) <EOL> def values ( self , * fields ) : <EOL> return self . get_search_queryset ( ) . values ( * fields ) <EOL> def values_list ( self , * fields , ** kwargs ) : <EOL> return self . get_search_queryset ( ) . values_list ( * fields , ** kwargs ) </s>
