opensearch-project / opensearch-project/sql

[FEATURE] Improve search command syntax to search for a boolean expression in a particular field.

Open
#4,291 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

calcite enhancement PPL
Dominant language
Java
Stars
176
Forks
229
Avg merge
2d 21h
Merged PRs (30d)
43

Description

Today, on default field we could search for boolean expression using the below command.

search=index "error" AND "failed"

if we want to do the same thing in a particular field, it would be

search=index body="error" AND body="failed"

ideally, it would be simple if we could write.

search= index body=("error" AND "failed")

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 by locating the parser and tests for field-specific boolean expressions in the SQL/PPL query syntax. Compare the existing body="error" AND body="failed" form with the requested body=("error" AND "failed") form. Done means the grouped syntax parses and produces the intended field-scoped search behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.