Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
docs
Commits
9f4adf46
Commit
9f4adf46
authored
Jul 08, 2015
by
柯阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search api added
parent
028a28e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
search.md
search.md
+30
-0
No files found.
search.md
0 → 100644
View file @
9f4adf46
# elasticsearch utils 接口文档
## 医生
*
医生搜索:
`search.utils.doctor.search_doctor`
def search_doctor(
query='', # 搜索query
user_city_tag_id=None, # 用户所在城市tag id
offset=0, # 偏移量
size=5, # 返回结果个数
sort_type=DOCTOR_ORDER_TYPE.DEFAULT, # 排序方式,参见api.models.types.DOCTOR_ORDER_TYPE
filters={ # 过滤器
'province_tag_id': 省份tag id,
'bodypart_tag_id': 一级tag id,
}
)
*
医生过滤:
`search.utils.doctor.filter_doctor`
def filter_doctor(
user_city_tag_id=None, # 用户所在城市tag id
offset=0,
size=5,
sort_type=DOCTOR_ORDER_TYPE.DEFAULT2, # 排序方式,参见api.models.types.DOCTOR_ORDER_TYPE
filters={
'province_tag_id': 省份tag id,
'tag_ids': [需要过滤的tag id1, tag id2, ...] # 注意是"或"的关系
}
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment