Skip to main content

What's New in MarkLogic 11

Collections in Request Parameters are OR Related

When you specify multiple collections through the collection request parameter of the following methods, they are now OR related:

  • GET and POST /v1/search

  • GET and POST /v1/qbe

  • GET and POST /v1/values/name

The new behavior is consistent with the semantics of cts:collection-query and the structured query collection-query.

To get AND semantics, construct your own and-query of collection URIs as part of a structured or combined query, or by defining a constraint in your query options.

The new behavior differs from previous behavior in the following way:

  • In MarkLogic 8.0-6, the GET methods applied AND semantics to multiple collection parameters, while the POST methods applied OR semantics.

  • In MarkLogic 8.0-5 and earlier, both GET and POST methods applied AND semantics to multiple collection parameters.