Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended search with attributes returned #306

Open
roman-khimov opened this issue Sep 3, 2024 · 1 comment
Open

Extended search with attributes returned #306

roman-khimov opened this issue Sep 3, 2024 · 1 comment
Labels
feature Completely new functionality I2 Regular impact S2 Regular significance U4 Nothing urgent

Comments

@roman-khimov
Copy link
Member

Is your feature request related to a problem? Please describe.

I'm always frustrated when we can't have something like ORDER BY in our searches. It'd simplify nspcc-dev/neo-go#3496 greatly, but:

  • individual node can't sort objects, it doesn't know the criteria
  • even if it's to know the criteria we can't merge results from different nodes

Describe the solution you'd like

We can extend search result with attributes if they're requested. It can be different from "ORDER BY", something like "WITH FIELD", but the result would be []{oid, []attributeValue} (ordered by requested attributes) instead of []oid. Then the request originator can do anything it wants with these fields including ordering or choosing the most appropriate version of an object (REST).

Describe alternatives you've considered

Dunno. Currently it's just an idea.

@roman-khimov roman-khimov added U4 Nothing urgent S2 Regular significance I2 Regular impact feature Completely new functionality labels Sep 3, 2024
@roman-khimov
Copy link
Member Author

By "FIELD" I mean attribute key, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Completely new functionality I2 Regular impact S2 Regular significance U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

1 participant