Search API searchable-expression Deprecated
- Last Updated: April 14, 2026
- 1 minute read
- MarkLogic Server
- Version 11.0
- Documentation
Due to security and performance considerations, beginning in MarkLogic 9.0-10, the searchable-expression property/element in query options is deprecated.
In addition, in 9.0-10 and moving forward, the searchable-expression requires the eval-search-string privilege.
Search API users should modify queries that use query options with searchable expressions to remove the searchable-expression. The replacement is as follows:
-
For the parts of the searchable expression resolvable with indexes, use query clauses instead
-
For the parts of the searchable expression resolvable only by scanning (such as regex predicates), the preferred approach is to remove them in favor of using indexes. Where necessary, filter the results in post-processing