phpcr/phpcr — Issue #21: Need for square brackets in fulltext search QOM
Author: nacmartin
Created: 2011-11-10 22:27:19+00:00
State: open

It was said in Issue #13 that you should never need to put brackets in QOM. However, when doing

$qomFactory->fulltextSearch('title', 'The', '[nt:unstructured]');

You still need them, because the same line without square brackets makes jackrabbit throw:

HTTP 400: Query:
SELECT * FROM [nt:unstructured] WHERE CONTAINS(nt:(*)unstructured.title, 'Team') AND [phpcr:class] = 'Sandbox\MainBundle\Document\EditableStaticContent' ORDER BY path ASC; expected: ,