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

OpenSearch query with filter #38

Open
ljy2855 opened this issue Oct 7, 2024 · 0 comments
Open

OpenSearch query with filter #38

ljy2855 opened this issue Oct 7, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@ljy2855
Copy link
Member

ljy2855 commented Oct 7, 2024

개요

OpenSearch k-NN search시, filtering 방식 정리

필터링 종류

Filter When the filter is applied Type of search Supported engines and methods Where to place the filter clause
Efficient k-NN filtering During search (a hybrid of pre- and post-filtering) Approximate - lucene (hnsw)- faiss (hnsw, ivf) Inside the k-NN query clause.
Boolean filter After search (post-filtering) Approximate - lucene- nmslib- faiss Outside the k-NN query clause. Must be a leaf clause.
The post_filter parameter After search (post-filtering) Approximate - lucene- nmslib- faiss Outside the k-NN query clause.
Scoring script filter Before search (pre-filtering) Exact N/A Inside the script score query clause.

레퍼런스

https://opensearch.org/docs/latest/search-plugins/knn/filter-search-knn/

@ljy2855 ljy2855 added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant