[
https://issues.apache.org/jira/browse/ATLAS-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16532068#comment-16532068
]
Connie Chen commented on ATLAS-2776:
------------------------------------
I figured this out... I was supposed to use `facetedSearch` in the client...
but it was not obvious that was related to basic search. The POST example still
doesn't work for me though.
> basic search endpoint with entityFilter doesn't work
> ----------------------------------------------------
>
> Key: ATLAS-2776
> URL: https://issues.apache.org/jira/browse/ATLAS-2776
> Project: Atlas
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Connie Chen
> Priority: Major
>
> From this documentation it seems like I should be able to call POST on the
> basic search url with `entityFilters`
> [https://atlas.apache.org/Search-Basic.html]
> I am able to do this in the UI, but when I make the POST request in the
> example, I get a `WebApplicationException` from Atlas.
> Additionally, there is no method in `AtlasClientV2` to add entity filters for
> the `basicSearch` API call. There is no method to make a POST request to
> `basicSearch` either. I am confused what I am supposed to be using to filter
> with both classifications and entity filters.
> If I try to make a POST API and use `callAPI` with it in `AtlasClientV2`, I
> get this error:
> [https://github.com/apache/atlas/blob/6bacbe946bbc5ca72118304770d5ad920695bd52/webapp/src/main/java/org/apache/atlas/web/rest/DiscoveryREST.java#L338]
> even though I included those fields in my POST body.
> Basically there is no good documentation and no method in the client to make
> this http request successfully outside of the UI.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)