quickwit-oss / quickwit-oss/quickwit
Native ip / array<ip> fields don't support CIDR or wildcards
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 11.7k
- Forks
- 597
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 37
Description
Summary
Quickwit's native ip field type stores IPv4/IPv6 efficiently but the query parser rejects:
- CIDR notation:
src_ip:10.0.0.0/8→ "failed to parse query" - Wildcards:
src_ip:10.0.*→ "wildcard queries not supported on ip fields" - Substring patterns:
src_ip:*.0.1→ same as above
Exact equality and range queries work, but there's no native network-range or partial-IP matching.
Repro
curl -sS "$QW/api/v1/<index>/search?query=source.ip:10.0.0.0/8"
# → 400, "failed to parse query"
curl -sS "$QW/api/v1/<index>/search?query=source.ip:*10.0*"
# → 400, "wildcard queries not supported on ip fields"
Expected behavior
- CIDR (
10.0.0.0/8,2001:db8::/32) translates to the equivalent ip range internally. - Wildcard / prefix / substring support on
ipfields — either native, or via a documented.text/.keywordmulti-field convention similar to Elasticsearch's pattern.
Use case
Security event search: "all traffic from corp subnet 10.0.0.0/8" or "all IPs starting with 192.168" are extremely common. Today, the only way to support these is to maintain a parallel text-typed IP field in the ingest pipeline and route substring/CIDR operators to it — roughly doubling the storage cost of the IP column.
Version
Observed on 0.8.x.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the CIDR and wildcard requests against the search API and tracing how the query parser handles native ip fields. Compare the existing exact and range behavior with the requested CIDR and pattern cases. Done means the chosen native or documented multi-field approach supports the stated searches without breaking existing queries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking, search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100