[ https://issues.apache.org/jira/browse/SOLR-8795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15184472#comment-15184472 ]
Deepak edited comment on SOLR-8795 at 3/8/16 6:18 AM: ------------------------------------------------------ Steps used: 1) install solr 2) used "solr start" then create "solr create -c techproducts" 3) cd /var/www/html/solr/solr-5.4.1/ 4) bin/post -c techproducts docs/9788131229811_flipick/OPS/*.* ===Test result but it is same after schema.xml changing === Stop and start solr 5) by this link again doing some changes (http://stackoverflow.com/questions/13389908/searching-and-match-count-for-phrase-with-solr) 6) edit schema.xml (\var\www\html\solr\solr-5.4.1\server\solr\configsets\basic_configs\conf\schema.xml) after changes index all document again 7) query build (http://192.168.200.23:8983/solr/techproducts/select?q=heart&fl=id,count:termfreq%28name,%27heart%27%29&wt=json&indent=true) response : { "responseHeader":{ "status":0, "QTime":1, "params":{ "q":"heart", "indent":"true", "fl":"id,count:termfreq(name,'heart')", "wt":"json"}}, "response":{"numFound":281,"start":0,"docs":[ { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0087.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0084.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0083.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0088.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236253_flipick/OPS/page0028.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236284_flipick/OPS/page0018a.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236253_flipick/OPS/page0028t.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236253_flipick/OPS/page0028p.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0085.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236253_flipick/OPS/page0028q.xhtml", "count":0}] }} Did I miss something? Actually I don't know how to debug for result. In the above response 'heart' word is their in fetched document but can't give how many time in it. above result is same before and after changes in schema.xml . was (Author: deepak.ghayal): Steps used: 1) install solr 2) used "solr start" then create "solr create -c techproducts" 3) cd /var/www/html/solr/solr-5.4.1/ 4) bin/post -c testconfig docs/9788131229811_flipick/OPS/*.* ===Test result but it is same after schema.xml changing === Stop and start solr 5) by this link again doing some changes (http://stackoverflow.com/questions/13389908/searching-and-match-count-for-phrase-with-solr) 6) edit schema.xml (\var\www\html\solr\solr-5.4.1\server\solr\configsets\basic_configs\conf\schema.xml) after changes index all document again 7) query build (http://192.168.200.23:8983/solr/techproducts/select?q=heart&fl=id,count:termfreq%28name,%27heart%27%29&wt=json&indent=true) response : { "responseHeader":{ "status":0, "QTime":1, "params":{ "q":"heart", "indent":"true", "fl":"id,count:termfreq(name,'heart')", "wt":"json"}}, "response":{"numFound":281,"start":0,"docs":[ { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0087.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0084.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0083.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0088.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236253_flipick/OPS/page0028.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236284_flipick/OPS/page0018a.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236253_flipick/OPS/page0028t.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236253_flipick/OPS/page0028p.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236208_flipick/OPS/page0085.xhtml", "count":0}, { "id":"/var/www/html/solr/solr-5.4.1/docs/9788131236253_flipick/OPS/page0028q.xhtml", "count":0}] }} Did I miss something? Actually I don't know how to debug for result. In the above response 'heart' word is their in fetched document but can't give how many time in it. above result is same before and after changes in schema.xml . > 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