Skip to content

Commit 1b0b6ec

Browse files
committed
updating Retrieve and Rank example
1 parent f692fc8 commit 1b0b6ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/retrieve_and_rank_v1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
# collection = retrieve_and_rank.create_collection(solr_cluster_id, 'test-collection', 'test-config')
3535
# print(json.dumps(collection, indent=2))
3636

37-
if (len(configs['solr_configs']) > 0):
37+
if len(configs['solr_configs']) > 0:
3838
collections = retrieve_and_rank.list_collections(solr_cluster_id=solr_cluster_id)
3939
print(json.dumps(collections, indent=2))
4040

4141
pysolr_client = retrieve_and_rank.get_pysolr_client(solr_cluster_id, 'example-collection')
4242
results = pysolr_client.search('bananas')
43-
print(results)
43+
print('{0} documents found'.format(len(results.docs)))
4444

4545
# Rankers
4646

0 commit comments

Comments
 (0)