Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4884

approximateCount confused

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • None
    • atlas-core
    • None

    Description

      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:

       

      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

      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.

       

       

      Attachments

        1. image-2024-06-26-11-58-18-440.png
          174 kB
          MinGuang Zhang
        2. image-2024-06-26-11-58-50-435.png
          201 kB
          MinGuang Zhang

        Activity

          People

            Unassigned Unassigned
            zhangminguang MinGuang Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: