You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a search options (named "all") on our project (using ML 7.0.4) where all constraints are defined. However in certain searches we only want to retrieve facet values for certain constraints.
One way to do this is to define the constraint at runtime using the QueryOptionsHandle – however this has been deprecated.
Using the Java Client API (2.04) to solve this, we were using QueryOptionsManager to read options "all" first. Then we wanted to retrieve facet definition (QueryOptionsHandle#getConstraint()).
Unfortunately it turns out that the returned handle (QueryOptions.QueryConstraint) is deprecated, although getConstraint is not (should it be deprecated also?).
The text was updated successfully, but these errors were encountered:
Thanks, Niko, for reporting this. We are deprecating QueryOptionsHandle as it depends on QueryOptions which is deprecated. In place of QueryOptionsHandle please use your favorite XML or JSON handle to read & write query options.
The fix is on both develop and 2.0-develop branches.
We have a search options (named "all") on our project (using ML 7.0.4) where all constraints are defined. However in certain searches we only want to retrieve facet values for certain constraints.
One way to do this is to define the constraint at runtime using the
QueryOptionsHandle
– however this has been deprecated.Using the Java Client API (2.04) to solve this, we were using
QueryOptionsManager
to read options "all" first. Then we wanted to retrieve facet definition (QueryOptionsHandle#getConstraint()
).http://docs.marklogic.com/javadoc/client/com/marklogic/client/io/QueryOptionsHandle.html
Unfortunately it turns out that the returned handle (
QueryOptions.QueryConstraint
) is deprecated, althoughgetConstraint
is not (should it be deprecated also?).The text was updated successfully, but these errors were encountered: