[ https://issues.apache.org/jira/browse/SOLR-8795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15183101#comment-15183101 ]
Marius Grama commented on SOLR-8795: ------------------------------------ For using termfreq function, in your case, there is nothing that comes to my mind that should be changed. I've tried on the techproducts sample collection {code} bin/solr start -e techproducts {code} a similar query to the one you have posted and this worked just fine : {code} http://localhost:8983/solr/techproducts/select?q=*%3A*&fl=id%2Cname%2Cprice_c%2Ccount%3Atermfreq(name%2C%27hard%27)&wt=json&indent=true {code} Nevertheless, this JIRA project is not thought to be support project on how to use Solr. For such topics, please consult http://lucene.apache.org/solr/resources.html > build search query > ------------------ > > Key: SOLR-8795 > URL: https://issues.apache.org/jira/browse/SOLR-8795 > Project: Solr > Issue Type: Test > Components: clients - php > Environment: php > Reporter: Deepak > Priority: Critical > Labels: newbie > Fix For: 5.4.1 > > > I am new to solr. I installed solr on ubuntu and indexed some unstructured > .xhtml documents and trying to use keyword search. it works but I need to no. > of occurrence in each document for which is used "termfreq(text,'pharmacy > related')" function. but it can't work. I did't change anything in solr core > functionality. do i need schema or solrconfig XMLS. > Here is the url: > http://192.168.200.23:8983/solr/testconfig/select?q=neuroanatomy&fl=id,count:termfreq(text,'neuroanatomy') > Please let me know If I wrong or need to change in core. > thanks in advance > -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org