Class: DbTextSearch::FullText::AbstractAdapter Abstract Private
- Inherits:
-
Object
- Object
- DbTextSearch::FullText::AbstractAdapter
- Includes:
- QueryBuilding
- Defined in:
- lib/db_text_search/full_text/abstract_adapter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
This class is abstract.
A base class for FullText adapters.
Direct Known Subclasses
Class Method Summary collapse
-
.add_index(connection, table_name, column_name, name:, pg_ts_config:) ⇒ Object
abstract
private
Add an index for full text search.
Instance Method Summary collapse
-
#initialize(scope, column) ⇒ AbstractAdapter
constructor
private
A new instance of AbstractAdapter.
- #search(terms, pg_ts_config:) ⇒ ActiveRecord::Relation abstract private
Methods included from QueryBuilding
Constructor Details
#initialize(scope, column) ⇒ AbstractAdapter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AbstractAdapter.
13 14 15 16 |
# File 'lib/db_text_search/full_text/abstract_adapter.rb', line 13 def initialize(scope, column) @scope = scope @column = column end |
Class Method Details
.add_index(connection, table_name, column_name, name:, pg_ts_config:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method is abstract.
Add an index for full text search.
34 35 36 |
# File 'lib/db_text_search/full_text/abstract_adapter.rb', line 34 def self.add_index(connection, table_name, column_name, name:, pg_ts_config:) fail 'abstract' end |
Instance Method Details
#search(terms, pg_ts_config:) ⇒ ActiveRecord::Relation
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method is abstract.
22 23 24 |
# File 'lib/db_text_search/full_text/abstract_adapter.rb', line 22 def search(terms, pg_ts_config:) fail 'abstract' end |