You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Thorben Ortmann (Jira)" <ji...@apache.org> on 2021/09/09 06:20:00 UTC

[jira] [Created] (ATLAS-4417) Using multivalued Fields in Atlas Search

Thorben Ortmann created ATLAS-4417:
--------------------------------------

             Summary: Using multivalued Fields in Atlas Search
                 Key: ATLAS-4417
                 URL: https://issues.apache.org/jira/browse/ATLAS-4417
             Project: Atlas
          Issue Type: Improvement
          Components:  atlas-core, atlas-intg
    Affects Versions: 2.2.0, 2.1.0
            Reporter: Thorben Ortmann


The improvement I am requesting is the functionality to use multivalued fields (like _array<string>_) in search. Let me give an example to elaborate on this:

Let's say we have an entity of a type called _Dataset_.
_Dataset_ has an attribute called _tags_ of type _array<string>_.
In _tags_ we put multiple _strings_; maybe about a product, branch or country a _Dataset_ belongs to (note that a _Dataset_ may belong to multiple products, branches, etc.).

Assigning the values via putting them in the _tags_ attribute of a _Dataset_ is no problem. What I have not been able to achieve is to search for _Datasets_ using the _tags_ attribute as it is of type _array<string>_ (or multivalued). To my knowledge, no search type offers this functionality. Something like:

FROM _Dataset_ WHERE _tags_ CONTAINS "tag_value_to_search_by"

is not possible via Advanced Search. There only is the _LIKE_ operator in the DSL and in Basic Search the _contains_ also only works with _String_ attributes and full-text search only considers _String_ attributes; afaik.

I think this functionality would be very valuable for a lot of use cases.

(Please let me know, if I am missing something and the described functionality to search with multivalued attributes is already there or if there is a workaround.)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)