Dear Nathan,

Coming back to this thread three years later after I realized you were
right (a user of mine reported the same issue on our repository recently)!
The XMLUI's Discovery advanced search filters do not work correctly for
dates.

In my own example above you can't see the issue because there is only one
item matching the filter term. I edited one item's issue date on the DSpace
6 demo repository and you can clearly see that the second item in the
search results *should not* match. In this case the search filter for issue
date containing "1992-06" returns results for the item having an issue date
of 1992-06-26 as expected, but also includes one with an issue date of
1992-01-06.

This is actually a bug! I will file a bug report... it affects at least
DSpace 5 and DSpace 6.

Regards,

On Wed, Mar 8, 2017 at 11:49 AM Alan Orth <[email protected]> wrote:

> Hi, Nathan.
>
> What's the problem exactly? Say you have an item with a dc.date.issued of
> 1992-06-26, if you use the advanced search to search for items that have an
> issue date containing 1992-06, you should get the result. See this example
> on the DSpace Demo:
>
>
> http://demo.dspace.org/xmlui/discover?filtertype_1=dateIssued&filter_relational_operator_1=contains&filter_1=1992-06&submit_apply_filter=&query=
>
> Regards,
>
> On Mon, Mar 6, 2017 at 10:05 PM Nathan Fralick <[email protected]>
> wrote:
>
>> When using date searching in our repository, the search doesn't function
>> as one would think. It almost acts as a key word search. I am sure the
>> problem lies within the dc code, where date isn't referencing the right
>> index. I am a beginner at coding and could use some help/advice
>> troubleshooting. The date code for the form is below. Any help would be
>> appreciated.
>>
>> <field>
>>           <dc-schema>dc</dc-schema>
>>           <dc-element>date</dc-element>
>>           <dc-qualifier>issued</dc-qualifier>
>>           <repeatable>false</repeatable>
>>           <label>Date of Document(s)</label>
>>           <input-type>date</input-type>
>>           <hint>Enter the date of the minutes, reports, etc.</hint>
>>           <required>You must enter at least the year.</required>
>> </field>
>>
>> Nathan Fralick
>> Digital Resources Librarian
>> Allegheny College, Pelletier Library
>>
>> --
>> 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 post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
>
> Alan Orth
> [email protected]
> https://englishbulgaria.net
> https://alaninkenya.org
> https://mjanja.ch
>


-- 
Alan Orth
[email protected]
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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/CAKKdN4UzN%3D_oEk8t3wOAEXR2DGXcTAinKt6brunHo78%3DLaTzbA%40mail.gmail.com.

Reply via email to