Learn how Scrivito CMS can help you deliver amazing digital experiences
See Scrivito CMS in action
New in 1.24.0

andFullTextOf(attribute, operator, value, boost)

Works like the and query method but can only be used with full-text operators.

This method only accepts the contains and containsPrefix search operators and throws an error if any other operator is used.

Full-text searches are subject to stemming.

Returns

ObjSearch – Itself

Example

Find Page objects whose title contains “About” and whose description contains “Scrivito”.

const pages = Scrivito.getClass("Page") const query = pages.whereFullTextOf("title", "contains", "news") query.andFullTextOf("description", "contains", "investor")