Commit eca83ad4 authored by Emma's avatar Emma 🦉

another attempt at a search fix

parent 517c5417
Pipeline #54345248 passed with stage
in 56 seconds
......@@ -85,8 +85,8 @@ final class SearchRepository {
$qb = $this->em->getConnection()->createQueryBuilder()
->addSelect(":entity AS entity")
->addSelect("ts_rank(search_doc, plainto_tsquery(:query)) AS search_rank")
->addSelect(":entity::TEXT AS entity")
->addSelect("ts_rank(search_doc, plainto_tsquery(:query::TEXT)) AS search_rank")
->from($table, 'e')
->where('search_doc @@ plainto_tsquery(:query)')
->setParameter('entity', self::ENTITY_TYPES[$entityClass], Type::TEXT)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment