Alexandre, How would the data type look like ?
Currently, this is what I have: <fieldType name="days_of_year" class="solr.SpatialRecursivePrefixTreeFieldType" geo="false" worldBounds="0 0 366 366" distErrPct="0" maxDistErr="0.00000009" units="degrees" /> <field name="state" type="string" indexed="true" stored="true" multiValued="true"> <field name="presentDays" type="days_of_year" indexed="true" stored="true" multiValued="true"/> <field name="absentDays" type="days_of_year" indexed="true" stored="true" multiValued="true”/> This is how I am indexing each record: for-each student: get the presence/absence period list for each presence/absence period get the state (either presence or absence) and add the value to *state* field inside the doc if the state is absence, add the absence period to the *absentDays* field if the state is presence, add the presence period to the *presentDays* field So, for student "X" (taken from my previous msg): Student "X" was `absent` between dates: Jan 1, 2015 and Jan 15, 2015 Feb 13, 2015 and Feb 16, 2015 March 19, 2015 and March 25, 2015 Also "X" was `present` between dates: Jan 25, 2015 and Jan 30, 2015 Feb 1, 2015 and Feb 12, 2015 This is how I think my student record would look like. Does it look correct ? { id: "X", state: ["absent", "present"] presentDays: [ [01 15 366 366], [13, 16, 366, 366], [19, 25, 366, 366] ] absentDays: [ [25, 30, 366, 366], [1, 12, 366, 366] ] } Also how would I represent the year in this case: Student "Y" was absent between Jan 1, *2012* to Feb 1, *2015* ? I would appreciate if you can provide an example of how to modify my fieldType definition to store timestamp level granularity. Thanks, Sudheer -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-How-to-index-range-pair-fields-tp4224369p4224526.html Sent from the Solr - User mailing list archive at Nabble.com.