I am trying to query solr index using its API,
http://localhost:8983/solr/documents/select?defType=func&q=termfreq(contents,'hello)&wt=json
I have indexed 3 documents and 2 documents/records have the term "hello" but it returns all the documents.
{
"responseHeader":{
"status":0,
"QTime":0,
"params":{
"q":"termfreq(contents,'hello')",
"defType":"func",
"indent":"on",
"wt":["json",
"json"],
"_":"1538568705504"}},
"response":{"numFound":3,"start":0,"docs":[
{*here I have docs*}
]
}
I was expecting only the documents which contain the word hello and its occurrence in those documents.
Am I correct or have I not understood this function properly?