Skip to content

introduce reindex query#101

Merged
jillesvangurp merged 7 commits into
jillesvangurp:masterfrom
barbulescu:reindex-query
Jan 11, 2024
Merged

introduce reindex query#101
jillesvangurp merged 7 commits into
jillesvangurp:masterfrom
barbulescu:reindex-query

Conversation

@barbulescu
Copy link
Copy Markdown
Contributor

@barbulescu barbulescu commented Jan 6, 2024

Introduce query DSL for reindex source.

Comment thread search-client/src/commonTest/kotlin/com/jillesvangurp/ktsearch/ReindexTest.kt Outdated
@jillesvangurp
Copy link
Copy Markdown
Owner

Looks good. Are you planning to do more work or is this good to go?

@barbulescu barbulescu marked this pull request as ready for review January 11, 2024 07:54
@barbulescu
Copy link
Copy Markdown
Contributor Author

I think is ready now for review.

class ReindexSourceDSL : JsonDsl() {
class ReindexSourceDSL : JsonDsl(), QueryClauses {
var index: String by property()
var query: ESQuery
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work. You could also just make query a nullable constructor parameter and deal with it in the same way as here:

class FilterAgg(filter: ESQuery): AggQuery("filter") {
    init {
        this[name]=filter.wrapWithName()
    }
}

Either is fine of course.

@jillesvangurp jillesvangurp merged commit 91609ae into jillesvangurp:master Jan 11, 2024
@barbulescu barbulescu deleted the reindex-query branch January 14, 2024 20:05
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

Successfully merging this pull request may close these issues.

2 participants