opensearch-project / opensearch-project/opensearch-java

[FEATURE] HtmlStripProcessor

Open
#1,538 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
165
Forks
250
Avg merge
1d 18h
Merged PRs (30d)
26

Description

The following processor is available in the latest openSearch version, but is missing from the java client:

https://docs.opensearch.org/docs/latest/ingest-pipelines/processors/html-strip/

The html_strip processor removes HTML tags from string fields in incoming documents. This processor is useful when indexing data from webpages or other sources that may contain HTML markup. HTML tags are replaced with newline characters (\n).

Could this processor be added?

The alternative would be to implement a new client to send the request directly to openSearch in json format.

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 with the OpenSearch html_strip processor documentation linked in the issue and inspect how the Java client represents other ingest-pipeline processors. Confirm the request shape and expected newline behavior from the documentation. Done means the Java client can express and send an html_strip processor request without requiring direct JSON requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.