Thanks Eric. But where in schema.xml, I will have to give this value and how.
Erik Hatcher wrote: > > > On Mar 19, 2009, at 1:57 AM, dabboo wrote: >> This is my query: >> q=productPublicationDate_product_dt:[*%20TO >> %20NOW]&facet=true&facet.field=productPublicationDate_product_dt:[* >> %20TO%20NOW]&qt=dismaxrequest >> >> This is exception, I am facing after running this query. >> >> - <lst name="facet_counts"> >> <lst name="facet_queries" /> >> <str name="exception">org.apache.solr.common.SolrException: undefined >> field productPublicationDate_product_dt:[* TO NOW] at > > Note the error message here.... > >> <str name="facet.query">productPublicationDate_product_dt:[* TO >> NOW/DAY-1MONTH]^2.2</str> >> </lst> >> >> >> Do I need to do something else to run this query. > > Yes, you need to define that field in schema.xml > > Also note that the boosting on that query isn't going to give you > anything useful - all you get back from that facet.query is a single > count of matching documents. > > Erik > > > -- View this message in context: http://www.nabble.com/Problem-with-Facet-Date-Query-tp22594164p22596450.html Sent from the Solr - User mailing list archive at Nabble.com.