logo
Browse Source

Update README

main
shiyu22 2 years ago
parent
commit
ece9238a41
  1. 2
      README.md

2
README.md

@ -24,7 +24,7 @@ from towhee import pipe, ops, DataCollection
query = {'match_all': {}}
es_search = (
pipe.input('index_name', 'query')
.map(('index_name', 'query'), 'res', ops.elasticsearch.search_client(
.map(('index_name', 'query'), 'res', ops.elasticsearch.osschat_search(
host='localhost', port=9200
))
.output('query', 'res')

Loading…
Cancel
Save