<?xml version="1.0" encoding="UTF-8"?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="Doctrine\Tests\ORM\Mapping\Comment"> <indexes> <index columns="content" flags="fulltext"> <options> <option name="where">content IS NOT NULL</option> </options> </index> </indexes> <field name="content" type="text"/> </entity> </doctrine-mapping>