Hi,

You could try using the Solr range query syntax with the Equals comparison:

[2021-03-01 TO 2021-05-31]

DSpace 6.3 uses Solr 4.10.4, so additional information on range queries can be 
found in:

http://archive.apache.org/dist/lucene/solr/ref-guide/apache-solr-ref-guide-4.10.pdf

--
Sean

From: [email protected] <[email protected]> on behalf of 
kpet <[email protected]>
Date: Wednesday, November 17, 2021 at 5:32 AM
To: DSpace Technical Support <[email protected]>
Subject: [dspace-tech] Discovery Date Range Queries (DSpace 6)
Caution: This message was sent from outside the University of Manitoba.
Hello,

I have a DSpace 6.3 installed on a linux machine, using tomcat 9, jre 1.8, ant 
1.10 and maven 3.3.9.

I want to be able to perform a search query via the Discovery interface on a 
date field (e.g. dc.date.available) but for a date range, for example objects 
returned should have dc.date.available between March and May of 2021, i.e. 
dc.date.available >= 2021-03-01 && dc.date.available <= 2021-05-31

I have read the documentation of Discovery on how to add custom search filters 
but the problem is I also want to add a custom relational operator, as in 
"greater than". Currently, I only see Contains, Equals, ID, Not Contains, Not 
Equals, Not ID.

Any help would be greatly appreciated.
--
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/6d8c8661-d9e1-4e19-a6e6-93e17277e73fn%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/6d8c8661-d9e1-4e19-a6e6-93e17277e73fn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/YQBPR0101MB5404DCD23DD7AA6613C331F5E8619%40YQBPR0101MB5404.CANPRD01.PROD.OUTLOOK.COM.

Reply via email to