Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

scoped queries using the NiFi search api

Solved Go to solution
Highlighted

scoped queries using the NiFi search api

Explorer

In the NiFi rest api is it possible to define scope and parameters in the search-results endpoint? I would like to be able to limit searches to root processGroups and refine the search to match only on specific fields such as the name and not property values. Is this possible? Or are their alternitves to achieve this with the rest api when the UUIDs are unkown?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: scoped queries using the NiFi search api

No scoping that I'm aware of. However, take a closer look at the returned search results structure - it often contains details on the type of the item and parent.

Alternatively you can recurse from the root group and list contents instead of searching, but that requires more logic on the client side.

View solution in original post

2 REPLIES 2
Highlighted

Re: scoped queries using the NiFi search api

No scoping that I'm aware of. However, take a closer look at the returned search results structure - it often contains details on the type of the item and parent.

Alternatively you can recurse from the root group and list contents instead of searching, but that requires more logic on the client side.

View solution in original post

Re: scoped queries using the NiFi search api

Explorer

Thanks for the reply Andrew. I ended up using your alternative solution. The search and filter approach ended up being too tedious and couldn't guarantee accuracy.

Don't have an account?
Coming from Hortonworks? Activate your account here