Term frequency (solr with python)

34 views
Skip to first unread message

huda

unread,
Jan 11, 2017, 6:27:26 AM1/11/17
to solrpy
Hi,


I'm using python to connect to solr using this code:


from urllib2 import *

response = eval(connection.read())

print response['response']['numFound'], "documents found."
for document in response['response']['docs']:
    print "  name =", document['name']


I want to get term frequency for the field "name" can anybody tell how to do that???


Thanks in advance!


Reply all
Reply to author
Forward
0 new messages