Skip to content

UpdateQuery withRefreshPolicy not working. #2692

Closed
@SageJustus

Description

@SageJustus

I use ElasticsearchOperations to implement update operations.

esOperations.update(
    UpdateQuery.builder(old.id.toString())
        .withDocument(Document.from(mapOf("browsed" to item.browsed)))
        .withRefreshPolicy(
            RefreshPolicy.IMMEDIATE
        )
        .build(),
    IndexCoordinates.of("t_telegram_message")
)

But it's not working properly, the post request is

POST /t_telegram_message/_update/6150?refresh=false

What I expect is that the request parameter is refresh=true.

Dependencies:

<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>5.0.3</version>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions