Class: Awesome::SuperSearch
- Defined in:
- lib/awesome/super_search.rb
Constant Summary
Constants included from Definitions::Stopwords
Definitions::Stopwords::BEG_OPERATORS, Definitions::Stopwords::END_OPERATORS, Definitions::Stopwords::EXCLUSION_OPERATORS, Definitions::Stopwords::INCLUSION_OPERATORS, Definitions::Stopwords::QUOTED_REGEX, Definitions::Stopwords::RM_QUOTED_REGEX, Definitions::Stopwords::UNQUOTED_REGEX
Instance Attribute Summary
Attributes inherited from Search
#clean_search_query, #endpoint, #found, #gowords, #highlight_tokens, #invalid_inception, #multiple_types_as_one, #page, #per_page, #query_without_exact_phrases, #quoted_exact_phrases, #redirect_url, #replacement_for, #search_filters, #search_locale, #search_query, #search_text, #search_tokens, #search_type, #stopwords, #success, #tally, #tokenize_quoted, #tokenize_unquoted, #tokenize_without_quoted, #unquoted_exact_phrases
Instance Method Summary collapse
-
#get_results ⇒ Object
Instance method Mixins.
Methods inherited from Search
clean_search_text, #clean_search_text, configure_search_filters, configure_search_stopwords, configure_search_types, #initialize, results_for, #to_s
Methods included from Definitions::Stopwords
#array_with_stopwords, #clean_token, #gowords_array, #highlight_token_array, included, #process_stopwords, #query_wo_exact_phrases, #quoted_exact_phrases_array, #remove_exclusions, #search_token_array, #set_clean_search_query, #tokenize_quot, #tokenize_unquot, #tokenize_without_quot, #unquoted_exact_phrases_array
Methods included from Definitions::Filters
Methods included from Definitions::Types
included, #valid_search_type_inception?
Methods included from Definitions::Bits
Constructor Details
This class inherits a constructor from Awesome::Search
Instance Method Details
#get_results ⇒ Object
Instance method Mixins
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/awesome/super_search.rb', line 4 def get_results return nil unless super # initialize the search result values since # if we've gotten this far we have a real search being executed # tally and results are set to nil in the main initializer # so that we can differentiate between searches that aborted # and searches that completed but had no results. self.found = [] self.tally = 0 return true end |