Skip to content

[BUG]UBI_JUDGMENT creation fails when using OpenSearch Dashboards sample UBI data #907

Description

@arunagov

[BUG] UBI_JUDGMENT creation fails when using OpenSearch Dashboards sample UBI data

What is the bug?

When UBI data is loaded using the OpenSearch Dashboards sample data loader, events are stored in opensearch_dashboards_sample_ubi_events. The Search Relevance plugin hardcodes ubi_events as the expected index name and fails with a 500 error. Creating an alias ubi_events → opensearch_dashboards_sample_ubi_events does not help — the plugin does not resolve aliases.

How can one reproduce the bug?

  1. Load sample UBI data via OpenSearch Dashboards (Home → Add sample data) — this creates opensearch_dashboards_sample_ubi_events
  2. Run:
PUT _plugins/_search_relevance/judgments
{
  "name": "my-implicit-judgments",
  "clickModel": "coec",
  "type": "UBI_JUDGMENT",
  "maxRank": 20
}
  1. Observe:
{"error": {"reason": "UBI events index does not exist"}, "status": 500}

What is the expected behavior?

The plugin should recognize opensearch_dashboards_sample_ubi_events as a valid UBI events source, or support an eventsIndex parameter to specify a custom index name.

What is your host/environment?

  • OpenSearch 3.5
  • UBI events index: opensearch_dashboards_sample_ubi_events (loaded via Dashboards sample data)

Do you have any additional context?

The UI-based judgment creation in OpenSearch Dashboards works correctly with the same data — only the API path is broken. This blocks any user getting started with SRW using the built-in sample data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions