Skip to main content

What's New in MarkLogic 11

Search API searchable-expression Deprecated

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