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