Hi again,

we originally thought that LongPointField was what we might have to go with.  
Is that the wrong field type because it doesn't support intersection with 
multiple ranges simultaneously whereas the DateRangeField does?


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: Ruscheinski, Johannes <[email protected]>
Sent: 20 May 2020 09:25:16
To: [email protected]
Subject: Re: Solr Java-API Question


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]<mailto:[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]<mailto:[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

Reply via email to