: I'm trying to use localparams for stats component on Solr 4.4, exact query: : q=*:*&core=hotel_reviews&collection=hotel_reviews&fq=checkout_date:[* TO : *]&fq={!tag=period1}checkout_date:[2011-12-25T00:00:00.000Z TO : 2012-01-02T00:00:00.000Z}&fq={!tag=period2}checkout_date:[2011-12-25T00:00:00.000Z : TO : 2012-01-02T00:00:00.000Z}&rows=0&stats=true&stats.field={!ex=period2}checkout_date : : and it fails with error "unknown field" checkout_date. : Should localparams for stats field be supported for v. 4.4? : If I run same query for v.4.8 -- it returns result w/o error
what is the exact error message you get? specifically what shows up in your logs (with stack trace) so we can understand what piece of code is complaining about hte "unknown field" (you are asking here about stats component, but you are using "checkout_date" in several places in your query, we have no way of knowing for sure if the problem is coming from stats -- you haven't given us any examples of queries that *do* work (or details about how your checkout_date field is defined) https://wiki.apache.org/solr/UsingMailingLists are you absolutely certain this collection has a checkout_date in your 4.4 solr instance? -Hoss http://www.lucidworks.com/