JRediSearch icon indicating copy to clipboard operation
JRediSearch copied to clipboard

Term Frequencies in SearchResult

Open elizabetht opened this issue 6 years ago • 2 comments

Hi,is there a way to get the frequency of the search term in each document in the search results? From the example in the reference, https://oss.redislabs.com/redisearch/java_client.html, suppose the body was the lorem ipsum lorem ipsum lorem ipsum is there a way to get how many times the word lorem was present in the document indexed - say return 3 in this case?

Let me know if I am failing to see if there is a way already to do this using JRedisearch. I am using the following dependency in the build.gradle implementation("com.redislabs:jredisearch:0.25.0")

elizabetht avatar May 06 '19 18:05 elizabetht

@gkorland is there a way to get the term frequencies? or atleast a way to set the scorer functions?

elizabetht avatar May 07 '19 15:05 elizabetht

@elizabetht does that help https://oss.redislabs.com/redisearch/Scoring.html (see SCORER)

gkorland avatar Jul 30 '19 09:07 gkorland