Skip to content

Commit c020fb7

Browse files
committed
Revert "Exclude full-text search columns from entity queries (#5693)"
This reverts commit fc80657.
1 parent fc80657 commit c020fb7

File tree

1 file changed

+1
-8
lines changed
  • store/postgres/src/relational

1 file changed

+1
-8
lines changed

store/postgres/src/relational/dsl.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,6 @@ impl<'a> Table<'a> {
267267
}
268268
};
269269

270-
// NB: Exclude full-text search columns from selection. These columns are used for indexing
271-
// and searching but are not part of the entity's data model.
272-
cols.retain(|c| !c.is_fulltext());
273-
274270
if T::WITH_INTERNAL_KEYS {
275271
match parent_type {
276272
Some(IdType::String) => cols.push(&*PARENT_STRING_COL),
@@ -350,10 +346,7 @@ impl<'a> Table<'a> {
350346
ColumnType::Int8 => add_field::<BigInt>(&mut selection, self, column),
351347
ColumnType::Timestamp => add_field::<Timestamptz>(&mut selection, self, column),
352348
ColumnType::String => add_field::<Text>(&mut selection, self, column),
353-
ColumnType::TSVector(_) => {
354-
// Skip tsvector columns in SELECT as they are for full-text search only and not
355-
// meant to be directly queried or returned
356-
}
349+
ColumnType::TSVector(_) => add_field::<Text>(&mut selection, self, column),
357350
ColumnType::Enum(_) => add_enum_field(&mut selection, self, column),
358351
};
359352
}

0 commit comments

Comments
 (0)