On 11/17/2016 11:55 AM, KRIS MUSSHORN wrote: > I have a field in solr 5.4.1 that has values like: > 2016-10-15 > 2016-09-10 > 2015-10-12 > 2010-09-02 > > Yes it is a date being stored as text. <snip> > I need to be able to query for 2016-10 and only match 2016-10-15.
I think your best bet is to use DateRangeField instead of TextField. You will need to reindex after changing your schema. https://lucidworks.com/blog/2016/02/13/solrs-daterangefield-perform/ https://cwiki.apache.org/confluence/display/solr/Working+with+Dates#WorkingwithDates-DateRangeFormatting Thanks, Shawn