: my question is what is the purpose of NOW-1DAY,NOW-1HOUR these values.How : we use the Datefield efficiently.(Or) can we use this filed while searching : ? (Or) can we pass this parameters while sending query?
expressions like "NOW-1DAY" are just a syntax goodie of DateField that let you express relative dates simply without having the compute the realtive date in your client. you can use htat syntax at query time or at index time, however it's useful to you. In my opinion the biggest advantage of them (and the reason i wrote them in the first place) is for hardcoding relative default/appended/invariant fq or facet.date related params in solrconfig.xml. -Hoss