quickwit-oss / quickwit-oss/quickwit

Support formatting on datehistogram aggregations

Open
#5,585 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
11.7k
Forks
597
Avg merge
2d 22h
Merged PRs (30d)
37

Description

Is your feature request related to a problem? Please describe.
I'm trying to make ES endpoints more compatible, I'm intended to use grafana's elasticsearch plugin with quickwit, my goal isn't to replace quickwit plugin, but just to have backward compatibility. Currently grafana's ES plugin uses epoch_millis as a format for datehistograms and tantivy doesn't support format option in datehistograms.

Describe the solution you'd like
I would like to be able to give a optional date formatter function/trait to tantivy aggregations.

Describe alternatives you've considered
Having common datetime formatter/parser crate between tantivy and quickwit.

Additional context
I would like to implement it myself :)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the datehistogram aggregation entry point and inspect how date values are currently handled in Tantivy aggregations. Define the optional formatter interface and verify that the epoch_millis format used by Grafana's Elasticsearch plugin produces compatible results; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.