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

[FEATURE] Provide a way to make .Strict(true) be the default behavior for all queries #375

Open
DumboJet opened this issue Sep 25, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@DumboJet
Copy link

Is your feature request related to a problem?

Applying the .Strict(true) to each sub-query is a lot of work and you can always miss something.

What solution would you like?

Having a way to make .Strict(true) be the default behavior (perhaps for a QueryContainer and all its children?) would probably be a nice feature. It would save people from a lot of silent bugs, where queries become conditionless and are not serialized.

@DumboJet DumboJet added enhancement New feature or request untriaged labels Sep 25, 2023
@Xtansia Xtansia added good first issue Good for newcomers and removed untriaged labels Sep 26, 2023
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Jan 8, 2024
Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Jan 8, 2024
Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Jan 8, 2024
…tion.

Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Jan 8, 2024
…tion.

Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Jan 11, 2024
…(bool)` methods on `QueryContainer` that recursively apply the respective attribute to all subqueries. Also added a `.Name(string)` method on `QueryContainer` that names the (root) contained query.

Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Jan 11, 2024
…(bool)` methods on `QueryContainer` that recursively apply the respective attribute to all subqueries. Also added a `.Name(string)` method on `QueryContainer` that names the (root) contained query.

Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Jan 11, 2024
…(bool)` methods on `QueryContainer` that recursively apply the respective attribute to all subqueries. Also added a `.Name(string)` method on `QueryContainer` that names the (root) contained query.

Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Jan 11, 2024
…ol) methods on QueryContainer that recursively apply the respective attribute to all subqueries. Also added a .Name(string) method on QueryContainer that names the (root) contained query.
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Jan 15, 2024
…ol) methods on QueryContainer that recursively apply the respective attribute to all subqueries. Also added a .Name(string) method on QueryContainer that names the (root) contained query.

Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Feb 6, 2024
…)`, `.Name(...)` methods on `QueryContainer` to help modify contained query attributes.

Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Feb 6, 2024
…)`, `.Name(...)` methods on `QueryContainer` to help modify contained query attributes.

Signed-off-by: Kostas <ghost0002001@hotmail.com>
DumboJetEngine added a commit to DumboJetEngine/opensearch-net that referenced this issue Feb 6, 2024
…ods on `QueryContainer` to help modify contained query attributes. (opensearch-project#375)

Signed-off-by: Kostas <ghost0002001@hotmail.com>
Xtansia pushed a commit that referenced this issue Feb 6, 2024
…yContainer` to help modify contained query attributes. (#375) (#509)

Signed-off-by: Kostas <ghost0002001@hotmail.com>
Xtansia pushed a commit to Xtansia/opensearch-net that referenced this issue Feb 6, 2024
…yContainer` to help modify contained query attributes. (opensearch-project#375) (opensearch-project#509)

Signed-off-by: Kostas <ghost0002001@hotmail.com>
(cherry picked from commit e4f715e)
dblock pushed a commit that referenced this issue Feb 7, 2024
…yContainer` to help modify contained query attributes. (#375) (#509) (#539)

Signed-off-by: Kostas <ghost0002001@hotmail.com>
(cherry picked from commit e4f715e)

Co-authored-by: DumboJetEngine <DumboJetEngine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants