[ https://issues.apache.org/jira/browse/ATLAS-4884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17863122#comment-17863122 ]
Pinal Shah commented on ATLAS-4884: ----------------------------------- [~zhangminguang] # While using `__customAttribute` in basic search filter, approximateCount is incorrect, it is a bug, i have created ticket ATLAS-4885, will fix in a day # For your usecase regarding custom entity type and filtering it with its attribute, it is possible to search through DSL. but filtering through `__customAttributes`(UserDefined Attributes) is not supported in DSL > approximateCount confused > ------------------------- > > Key: ATLAS-4884 > URL: https://issues.apache.org/jira/browse/ATLAS-4884 > Project: Atlas > Issue Type: Bug > Components: atlas-core > Affects Versions: 2.1.0 > Reporter: MinGuang Zhang > Priority: Major > Attachments: image-2024-06-26-11-58-18-440.png, > image-2024-06-26-11-58-50-435.png > > > atlas should return search result total exactly when user post some search > Conditions, like query string and filter. Is using approximateCount as > total? but approximateCount make me confused. > a general scene: i want the total of search result for page i one request. > but now i should recall api to add limit (eg: 100000+) . > the bad way: to reduce paramaters for get all and return hurge data for > calculate. > > {*}Problem 1{*}: > the response of post "/search/basic" api. > see picture1 , i'm not add filter and set search text to find the hive_table > contains my custom attributes, the approximateCount is correct。 by the way, > is DSL support find __customAttribute?? how to do? > picture 1: > !image-2024-06-26-11-58-18-440.png! > > see picture2, i'm add filter and not set search text, the approximateCount > is incorrect。 i see the correct total is 11 one by one. > picture2 > !image-2024-06-26-11-58-50-435.png! > also i can't using the entities size for work when the limit paramters > changed. > so how to search use defined attribute for work? use filter or fullText > search? and is a bug? or need some total variable? > > {*}Problem 2{*}: > Use-defined propertiies can help business . can support dsl search it ? any > discuss will help me. > > -- This message was sent by Atlassian Jira (v8.20.10#820010)