: Still search on any field (?q=searchTerm) gives following error : "The request sent by the client was syntactically incorrect (Invalid Date : String:'searchTerm')."
because "searchTerm" isn't a valid date string : Is this valid to define *_dt (i.e. date fields ) in solrConfig.xml ? if you really wanted to do a dismax search over some date fields, you could -- but only with date input. but you don't want to do a dismax query over date fields, based on your your original question... : > <str name="qf"> : > productPublicationDate_product_dt^1.0 : > productPublicationDate_product_dt[NOW-45DAYS TO NOW]^1.0 : > </str> ...it seems that what you really want is to have a query clause matching docs from the last 45 days -- independent of what the searchTerm was. so do that with either an "fq" (filter query) or a bq (boost query) (depending on your goal) 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