Should this be improved? This doesn't guarantee that the order of documents in docs table is the same as the original table, making id column misleading.
|
EXECUTE FORMAT( 'INSERT INTO %s (doc, tokenized_doc) SELECT %s AS doc, bm25simpletokenize(%s) AS tokenized_doc FROM %s ;', docstname, columnname, columnname, tablename ); |
Should this be improved? This doesn't guarantee that the order of documents in docs table is the same as the original table, making id column misleading.
plpgsql_bm25/plpgsql_bm25.sql
Line 126 in da5ee09