Hi, There's a wiki page on this: https://cwiki.apache.org/confluence/display/SOLR/SpatialForTimeDurations The first two paragraphs essentially cover it: use DateRangeField (even for integers).
~ David On Tue, May 19, 2020 at 9:59 AM Ruscheinski, Johannes < [email protected]> wrote: > Hi, > > > I have the following problem: > > > My "documents" have a field that contains one or more 2D intervals (mostly > it is a single interval). I have queries that consist of one or more > intervals (also most of the queries consist of a single interval). I need > to generate a list of document IDs that have at least a partial overlap > with one of the intervals contained in the query. The ranking needs to be > implemented by me. > > I do know Java but I know virtually nothing about the Solr API. If there > is a more appropriate mailing list to ask such a question, I apologize and > ask that someone would point it out, please. > > Thanks! > > > Johannes > > -- > Dr. Johannes Ruscheinski > Universitätsbibliothek Tübingen - IT-Abteilung - > Wilhelmstr. 32, 72074 Tübingen > > Tel: +49 7071 29-72820 > FAX: +49 7071 29-5069 > Email: [email protected] > > The Sophisticate: "The world isn't black and white. No one does pure > good or pure bad. It's all gray. Therefore, no one is better than anyone > else." > The Zetet: "Knowing only gray, you conclude that all grays are the > same shade. You mock the simplicity of the two-color view, yet you replace > it with a one-color view..." > —Marc Stiegler, David's Sling > >
