Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary Search Pipeline for a Request Not Working as Expected #11030

Closed
kirubasankars opened this issue Oct 31, 2023 · 1 comment
Closed

Temporary Search Pipeline for a Request Not Working as Expected #11030

kirubasankars opened this issue Oct 31, 2023 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@kirubasankars
Copy link

kirubasankars commented Oct 31, 2023

Description:
The temporary search pipeline for a request feature in OpenSearch is not functioning as expected. When executing a search query with a temporary pipeline intended to filter the results, the pipeline does not seem to influence the search results.

https://opensearch.org/docs/latest/search-plugins/search-pipelines/using-search-pipeline/#using-a-temporary-search-pipeline-for-a-request

To Reproduce
Steps to reproduce the behavior:

  1. Send a POST request to 'https://0.0.0.0:9200/idx/_search' with appropriate headers including 'Content-Type' set to 'application/json' and 'Authorization'.
  2. In the body of the request, include a 'query' field to perform a text match on a specific field.
  3. Also in the body, include a 'pipeline' field with a 'request_processors' array containing a 'filter_query'.
  4. Observe that the results are not filtered as expected based on the 'filter_query' provided in the 'pipeline'.

Expected behavior
The search results should be filtered according to the criteria specified in the 'filter_query' inside the 'pipeline'. Only documents matching both the initial query and the filter query should be returned.

Plugins
Please list all plugins currently enabled.

42d46a37b8fa opensearch-alerting 2.11.0.0
42d46a37b8fa opensearch-anomaly-detection 2.11.0.0
42d46a37b8fa opensearch-asynchronous-search 2.11.0.0
42d46a37b8fa opensearch-cross-cluster-replication 2.11.0.0
42d46a37b8fa opensearch-custom-codecs 2.11.0.0
42d46a37b8fa opensearch-geospatial 2.11.0.0
42d46a37b8fa opensearch-index-management 2.11.0.0
42d46a37b8fa opensearch-job-scheduler 2.11.0.0
42d46a37b8fa opensearch-knn 2.11.0.0
42d46a37b8fa opensearch-ml 2.11.0.0
42d46a37b8fa opensearch-neural-search 2.11.0.0
42d46a37b8fa opensearch-notifications 2.11.0.0
42d46a37b8fa opensearch-notifications-core 2.11.0.0
42d46a37b8fa opensearch-observability 2.11.0.0
42d46a37b8fa opensearch-performance-analyzer 2.11.0.0
42d46a37b8fa opensearch-reports-scheduler 2.11.0.0
42d46a37b8fa opensearch-security 2.11.0.0
42d46a37b8fa opensearch-security-analytics 2.11.0.0
42d46a37b8fa opensearch-sql 2.11.0.0

Screenshots
image

image

Host/Environment (please complete the following information):

  • OS: Docker
  • Version From Docker Repo
  • OpenSearch Version: 2.11
@kirubasankars
Copy link
Author

Not an issue. its a documentation bug. Documentation mentioned pipeline instead of search_pipeline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant