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

http api support list indexes of a specified table #811

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

morphes1995
Copy link
Contributor

@morphes1995 morphes1995 commented Mar 18, 2024

What problem does this PR solve?

Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR.

Add http service API

  • List indexes of a specified table

eg: curl --request GET --url localhost:23820/indexes/default/test_index --header 'accept: application/json', and the result :

{
    "error_code": 0,    
    "db_name": "default",
    "table_name": "test_index",
    
    "indexes": [
        {
            "column_id": "0",
            "column_name": "col1",
            "index segments": "0/0",
            "index_name": "idx1",
            "index_type": "IVFFlat",
            "other_parameters": "metric = l2, centroids_count = 128",
            "path": "/tmp/infinity/data/97PHM4Cobx_db_default/xT2aqC2SQ3_table_test_index/eVINACIkLj_index_idx1"
        },
        {
            "column_id": "0",
            "column_name": "col1",
            "index segments": "0/0",
            "index_name": "idx2",
            "index_type": "HNSW",
            "other_parameters": "metric = l2, encode_type = plain, M = 16, ef_construction = 50, ef = 50",
            "path": "/tmp/infinity/data/97PHM4Cobx_db_default/xT2aqC2SQ3_table_test_index/TTOELZEonq_index_idx2"
        }
    ]
}

Issue link:#779

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Test cases
  • Python SDK impacted, Need to update PyPI
  • Other (please describe):

@JinHai-CN JinHai-CN added the ci PR can be test label Mar 19, 2024
@JinHai-CN JinHai-CN merged commit 83247a8 into infiniflow:main Mar 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci PR can be test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants