week 11 (28 august- 5 September)
Task 1 Filtering results by startdate :-
This week my task was to filter course results by startdate. Solr range can be used to implement the same.
Working with solr range queries :-
Range Queries allow one to match documents whose field(s) values are between the lower and upper bound specified by the Range Query.
startdate:[2013-08-24T00:00:00Z TO *] // courses that are started after 24 august
startdate:[2013-08-24T00:00:00Z TO 2013-09-24T00:00:00Z] // courses that is going to start b/w august to sep.
Solr’s built-in field types are very convenient for performing range queries on numbers without requiring padding.