: 
: This is my query: 
: 
q=productPublicationDate_product_dt:[*%20TO%20NOW]&facet=true&facet.field=productPublicationDate_product_dt:[*%20TO%20NOW]&qt=dismaxrequest

that specific error is happening because you are passing this string...

        productPublicationDate_product_dt:[*%20TO%20NOW]

...to the facet.field param.  that parameter expects the name of a field, 
and it will then facet on all the indexed values.  what you are passing it 
isn't the name of a field, you are passing it a query string.  if you want 
the faceting count for a query string, use the facet.query param, which 
you already seem to be doing with a different range of dates by hardcoding 
it into your solrconfig...

: I have entered this field in solrConfig.xml also in the below manner.
: 
:     <lst name="invariants">
:       <str name="facet.field">cat</str>
:       <str name="facet.field">manu_exact</str>
:       <str name="facet.query">price:[* TO 500]</str>
:       <str name="facet.query">price:[500 TO *]</str>
:         <str name="facet.query">productPublicationDate_product_dt:[* TO
: NOW/DAY-1MONTH]^2.2</str>
:     </lst>

I'm not entirely sure what it is you are trying to do, but you're also 
going to have problems because you are using the "standard" query syntax 
in your q param, but you have specified qt=dismax.

Please explain what your *goal* is and then people can help you explain 
how to achieve your goal ... what you've got here in your example makes no 
sense, and it's not clear what advice to give you to get it to make 
sense without knowing what it is you want to do.  This is similar to an XY 
Problem...

http://people.apache.org/~hossman/#xyproblem
XY Problem

Your question appears to be an "XY Problem" ... that is: you are dealing
with "X", you are assuming "Y" will help you, and you are asking about "Y"
without giving more details about the "X" so that we can understand the
full issue.  Perhaps the best solution doesn't involve "Y" at all?
See Also: http://www.perlmonks.org/index.pl?node_id=542341




-Hoss

Reply via email to