Skip to content

Conversation

@maguec
Copy link
Contributor

@maguec maguec commented Oct 5, 2020

add a new function to client which takes the name of a tagfield and runs the following command

FT.TAGVAL <INDEX> tagfield 

Returning a list of tags.

Test is included in test/test.py

@codecov
Copy link

codecov bot commented Oct 5, 2020

Codecov Report

Merging #94 into master will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@ Coverage Diff @@ ## master #94 +/- ## ========================================== + Coverage 91.35% 91.39% +0.04%  ========================================== Files 12 12 Lines 1584 1593 +9 ========================================== + Hits 1447 1456 +9  Misses 137 137 
Impacted Files Coverage Δ
redisearch/client.py 88.47% <100.00%> (+0.14%) ⬆️
test/test.py 98.88% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86cbec8...7e78181. Read the comment docs.

rafie
rafie previously approved these changes Oct 7, 2020
Copy link
Contributor

@ashtul ashtul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank for the contribution. It looks great!
Just minor comments.

res = client.search(q)
self.assertEqual(1, res.total)

q2 = client.tagvals('tags')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add another document with additional words and see that we get the combined list.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 7, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@ashtul ashtul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.
Thanks

@ashtul ashtul merged commit 5131403 into RediSearch:master Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants