Query to search for a text or word within the content of a document

Is it possible to make a query that allows you to search for a word or text within a document? for example to search for “hello” in all the documents of a certain type of either in its title or its description (PRIORITIZING THAT IT IS IN THE TITLE)

Thank you so much

Is this for site or authoring part? You can use:



for me no is possible create the query :

.constraint is a public static function, please import it from org.hippoecm.hst.content.beans.query.builder.ConstraintBuilder#constraint


import static org.hippoecm.hst.content.beans.query.builder.ConstraintBuilder.constraint;