description | sidebar_position |
---|---|
Group or separate items in your dataset. |
2 |
Group or separate items in your dataset
You can also combine searches. Unlike our legacy search, in annotation search, Filter
and Rank
is a list of Annotation
objects. Filtered annotations will be ANDed.
When you combine both Filter
and Rank
, filter will be applied before ranking annotations. This is important because limiting the result set on large applications can speedup the overall query drastically when doing a ranking.
:::info The initialization code used in the following example is outlined in detail on the client installation page. :::
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CodeBlock from "@theme/CodeBlock"; import PythonCombineNegate from "!!raw-loader!../../../code_snippets/api-guide/search/combine_or_negate.py"; import NodeCombineNegate from "!!raw-loader!../../../code_snippets/api-guide/search/combine_or_negate.js"; import JSCombineNegate from "!!raw-loader!../../../code_snippets/api-guide/search/combine_or_negate.html"; import JavaCombineNegate from "!!raw-loader!../../../code_snippets/api-guide/search/combine_or_negate.java"; import CurlCombineNegate from "!!raw-loader!../../../code_snippets/api-guide/search/combine_or_negate.sh";
{PythonCombineNegate} {JSCombineNegate} {NodeCombineNegate} {JavaCombineNegate} {CurlCombineNegate}