I hope this helps: https://lucene.apache.org/solr/guide/8_5/working-with-dates.html
No, LongPointField only does single points, not point-ranges. Some day we need a dedicated LongRangeField and similar for other primitives. ~ David On Wed, May 20, 2020 at 3:25 AM Ruscheinski, Johannes < [email protected]> wrote: > Hi David, > > > thanks for the advice. I hope I get the necessary resolution this way. > As I understand the recommendation it is to use seconds. I think we need 9 > decimal places. So that's 10^9 s which is not quite 32 years. Also how do > I issue my intersection queries at the Java API level once I have populated > the DateRange fields? > > > 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 > > ------------------------------ > *From:* David Smiley <[email protected]> > *Sent:* 19 May 2020 16:17:38 > *To:* Solr/Lucene Dev > *Subject:* Re: Solr Java-API Question > > 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 >> >>
