dbal icon indicating copy to clipboard operation
dbal copied to clipboard

Support flags: ['fulltext'] for postgres

Open tacman opened this issue 2 years ago • 5 comments

Feature Request

Q A
New Feature yes
BC Break no

Summary

It appears that

#[ORM\Index(name: "article_fulltext", columns: ["headline", "summary"], flags: ["fulltext"])]#

Only works with MySQL. It would be nice if this generated the index for Postgres as well. And even SQLite.

Basically building in at least the tool that creates the index in this bundle: https://github.com/jaimz22/DoctrineFullTextPostrgres

tacman avatar Dec 03 '23 11:12 tacman

Transferring to DBAL since the code that causes this to work with MySQL resides: https://github.com/doctrine/dbal/blob/7c4aa971ca9e3195eed400ade4b3a00a2617671b/src/Platforms/AbstractMySQLPlatform.php#L1054-L1055

greg0ire avatar Dec 03 '23 16:12 greg0ire

@greg0ire @tacman @derrabus Is some help needed with this?

antoniovj1 avatar May 10 '24 09:05 antoniovj1

I don't think I'll be able to do it, but wanted to bring up the issue hoping someone else with more experience would.

tacman avatar May 10 '24 17:05 tacman

I don't know the ins and outs of Doctrine but I think I could take a look and try to implement it.

antoniovj1 avatar May 10 '24 17:05 antoniovj1

Probably I'll need some investigation because the necessity of handling two columns. I'm not sure if doctrine is doing this for other cases.

antoniovj1 avatar May 10 '24 19:05 antoniovj1