I have a search engine for medical terms that run using Nutch and Solr, it uses a PHP frontend. Along with the search result it will show tagging count for thousands of a predefined terms, the tagging results are retrieved through passing all the terms to solr via a solr facet query.
How to add all these terms in solr without passing these through the query every time and then get then get the facet counts for each term in the search result. Part of my query for retrieving facet counts is given below:
fl=content,url&facet=true&facet.field=host&facet.zeros=false&facet.query=content:Pfizer&facet.query=content:Teva&facet.query=content:Genentech&facet.query=content:Abbot&facet.query=content:Constipation&facet.query=content:Constipate&facet.query=content:Constipated&facet.query=content:Constipates&facet.query=content:Constipation&facet.query=content:Diarrhea&facet.query=content:Depression&facet.query=content:Depressions&facet.query=content:Depressed&facet.query=content:Sad&facet.query=content:Cramps&facet.query=content:Cough&facet.query=content:Xyrem&facet.query=content:Abilify&facet.query=content:Metformin&facet.query=content:Avastin'
Thanks in advance.