Hi David,
I am stuck again. In particular, I don't know how to initialize my
DateRangeFields in Java. I am trying to implement a function with a signature
as follows:
public static List<???> getDateRanges(final Record record, final String
rangeFieldTag) {
My problem is what to use as the type parameter for List<>. We're using
SolrMARC. It is not immediately obvious from the documentation as to how to do
that. "record" here is a MARC record that contains some field with ranges that
I need to convert to a list of something that I can use to populate my
DateRangeField instances.
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: 26 May 2020 10:55:41
To: [email protected]
Subject: Re: Solr Java-API Question
Hi David,
I just came back after a few days off and wanted to thank you for your help!
I'll be following your suggestion and will be using DateRangeField.
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: 20 May 2020 16:20:15
To: Solr/Lucene Dev
Subject: Re: Solr Java-API Question
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]<mailto:[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]<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
________________________________
From: David Smiley <[email protected]<mailto:[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