Module: ParadeDB::MigrationDSL
- Defined in:
- lib/parade_db/migration_helpers.rb
Instance Method Summary collapse
- #add_bm25_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false) ⇒ Object
- #create_paradedb_index(index_klass, if_not_exists: false) ⇒ Object
- #reindex_bm25(table, name: nil, concurrently: false) ⇒ Object
- #remove_bm25_index(table, name: nil, if_exists: false) ⇒ Object
- #replace_paradedb_index(index_klass) ⇒ Object
Instance Method Details
#add_bm25_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false) ⇒ Object
857 858 859 860 861 862 863 864 865 866 867 |
# File 'lib/parade_db/migration_helpers.rb', line 857 def add_bm25_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false) connection.add_bm25_index( table, fields: fields, key_field: key_field, name: name, index_options: , where: where, if_not_exists: if_not_exists ) end |
#create_paradedb_index(index_klass, if_not_exists: false) ⇒ Object
849 850 851 |
# File 'lib/parade_db/migration_helpers.rb', line 849 def create_paradedb_index(index_klass, if_not_exists: false) connection.create_paradedb_index(index_klass, if_not_exists: if_not_exists) end |
#reindex_bm25(table, name: nil, concurrently: false) ⇒ Object
873 874 875 |
# File 'lib/parade_db/migration_helpers.rb', line 873 def reindex_bm25(table, name: nil, concurrently: false) connection.reindex_bm25(table, name: name, concurrently: concurrently) end |
#remove_bm25_index(table, name: nil, if_exists: false) ⇒ Object
869 870 871 |
# File 'lib/parade_db/migration_helpers.rb', line 869 def remove_bm25_index(table, name: nil, if_exists: false) connection.remove_bm25_index(table, name: name, if_exists: if_exists) end |
#replace_paradedb_index(index_klass) ⇒ Object
853 854 855 |
# File 'lib/parade_db/migration_helpers.rb', line 853 def replace_paradedb_index(index_klass) connection.replace_paradedb_index(index_klass) end |