提交 592dde4d 编写于 作者: G groot

add attribute for vector


Former-commit-id: c2a1a5cd917abe1cf3e8ef327bba5c2ed1cf8008
上级 cdda6e57
......@@ -100,8 +100,11 @@ service VecService {
/**
* search interfaces
* if time_range_list is empty, engine will search without time limit
*
* you can use filter to reduce search result
* filter.attrib_filter can specify which attribute you need, for example:
* set attrib_filter = {"color":""} means you want to get "color" attribute for result vector
* set attrib_filter = {"color":"red"} means you want to get vectors which has attribute "color" equals "red"
* if filter.time_range is empty, engine will search without time limit
*/
VecSearchResult search_vector(2: string group_id, 3: i64 top_k, 4: VecTensor tensor, 5: VecSearchFilter filter) throws(1: VecException e);
VecSearchResultList search_vector_batch(2: string group_id, 3: i64 top_k, 4: VecTensorList tensor_list, 5: VecSearchFilter filter) throws(1: VecException e);
......
......@@ -45,8 +45,11 @@ class VecServiceIf {
/**
* search interfaces
* if time_range_list is empty, engine will search without time limit
*
* you can use filter to reduce search result
* filter.attrib_filter can specify which attribute you need, for example:
* set attrib_filter = {"color":""} means you want to get "color" attribute for result vector
* set attrib_filter = {"color":"red"} means you want to get vectors which has attribute "color" equals "red"
* if filter.time_range is empty, engine will search without time limit
*
* @param group_id
* @param top_k
......
......@@ -67,8 +67,11 @@ class VecServiceHandler : virtual public VecServiceIf {
/**
* search interfaces
* if time_range_list is empty, engine will search without time limit
*
* you can use filter to reduce search result
* filter.attrib_filter can specify which attribute you need, for example:
* set attrib_filter = {"color":""} means you want to get "color" attribute for result vector
* set attrib_filter = {"color":"red"} means you want to get vectors which has attribute "color" equals "red"
* if filter.time_range is empty, engine will search without time limit
*
* @param group_id
* @param top_k
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册