Skip to content

Should we use refresh=true on production? (Test is not suitable for 7.9) #61

@bart2001

Description

@bart2001

Hello, I would like to raise an issue about the test case.

According to fast-elasticsearch-vector-scoring/src/test/java/com/liorkn/elasticsearch/PluginTest.java file,
the test case uses params.put("refresh", "true") on data insertion request, which makes vector scoring result works properly.

public void test() throws Exception {
  final Map<String, String> params = new HashMap<>();
  params.put("refresh", "true");

However, in production case, we often do not use refresh=true option on data insertion.
If we do not use this option, the vector scoring result does not work properly. (such as there are same cosine similarity score among result documents...)

I think one of two options should be considered

  1. Modify the test code (removing refresh=true) -> this may cause code level modification of vector scoring plugin
  2. Mention in the document that refresh=true option must be provided on data insertion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions