Connie,

Can you try this json as the body, I think to search on attribute needs to
be added to in criterion attribute.

 http://atlasUrl:21000/api/atlas/v2/search/basic method - post

{
    "excludeDeletedEntities": true,
    "entityFilters": null,
    "tagFilters": {
      "criterion": [
        {
          "attributeName": "type",
          "operator": "eq",
          "attributeValue": "example"
        }
      ]
    },
    "attributes": [],
    "limit": 25,
    "offset": 0,
    "classification": "PII"
  }


On Wed, Dec 6, 2017 at 11:50 AM, Connie Chen <[email protected]> wrote:

> Hi Madhan, thanks for the fast response.
>
> I added the snippet of the application log that shows the stack trace when
> I make the search request. https://gist.github.com/connie-stripe/
> 597e087433869036e63e5d8363d61bd3#gistcomment-2277245
>
> I also added as much of the application log as I could in another file
> https://gist.github.com/connie-stripe/597e087433869036e63e5d8363d61b
> d3#file-application-log
>
> Let me know if that helps, thanks!
>
> Connie
>
> On Tue, Dec 5, 2017 at 6:41 PM, Madhan Neethiraj <[email protected]>
> wrote:
>
>> Connie,
>>
>>
>>
>> Thanks for the details provided on this issue. Classification definition
>> and basic-search REST API call details look good. To troubleshoot further,
>> can you add complete application.log file?
>>
>>
>>
>> Madhan
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *From: *Connie Chen <[email protected]>
>> *Reply-To: *"[email protected]" <[email protected]>
>> *Date: *Tuesday, December 5, 2017 at 5:17 PM
>> *To: *"[email protected]" <[email protected]>
>> *Subject: *500 returns when I try to basic search
>>
>>
>>
>> Hi, I am new to using Atlas and I am testing out the API to create my
>> data models. I've created a classification with a string attribute
>> "dataType" where "isIndexable" is set to true. However, I cannot figure out
>> how to query for a specific value via the API without getting a 500.
>>
>>
>>
>> Here is my configuration:
>>
>> https://gist.github.com/connie-stripe/597e087433869036e63e5d8363d61bd3
>>
>>
>>
>> This is the field I am indexing on: https://gist.github.com/co
>> nnie-stripe/597e087433869036e63e5d8363d61bd3#file-gistfile1-txt-L22
>>
>>
>>
>> Here is the curl command I am running to try and retrieve a value where
>> that attribute field is a specific value: https://gist.github.com
>> /connie-stripe/597e087433869036e63e5d8363d61bd3#gistcomment-2277045
>>
>>
>>
>> Then I am getting these logs back: https://gist.github.com/
>> connie-stripe/597e087433869036e63e5d8363d61bd3#gistcomment-2277047
>>
>>
>>
>> Am I doing something wrong? Is there an easier way to debug these sorts
>> of errors? The stack trace hasn't been very helpful. Thanks!
>>
>>
>>
>> Connie
>>
>
>

Reply via email to