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

Inconsistent Field Naming in search.go: 'builder' Field Instead of Expected 'query' #89

Open
yuanliuGeo opened this issue Oct 17, 2023 · 0 comments

Comments

@yuanliuGeo
Copy link

Tring to build query like below. https://druid.apache.org/docs/latest/querying/filters#search-filter

{
    "filter": {
        "type": "search",
        "dimension": "product",
        "query": {
          "type": "insensitive_contains",
          "value": "foo"
        }
    }
}

But the Search is define with Query as json:"builder,omitempty" in search.go , which won't have query field, but builder field.

type Search struct {
	Base
	Dimension    string               `json:"dimension,omitempty"`
	Query        string               `json:"builder,omitempty"`
	ExtractionFn builder.ExtractionFn `json:"extractionFn,omitempty"`
	FilterTuning *FilterTuning        `json:"filterTuning,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant