Hi!
I have an index "date" configured in my dspace.cfg:
search.index.5 = date:dc.date.issued
DSpace saves the dc.date.issued in the format YYYY-MM-DD.
I tried to search items in a range date using the options bellow:
- date:[1979 TO 1979] = OK, It returns all items where dc.date.issued is like
"1979" or "1979-06" or "1979-04-03" etc
- date:[1979-01-01 TO 1979-12-31] = DOESN'T WORK, no item returned
- date:[1979\-01\-01 TO 1979\-12\-31] = DOESN'T WORK, no item returned
- date:["1979-01-01" TO "1979-12-31"] = DOESN'T WORK, no item returned
- date:["1979\-01\-01" TO "1979\-12\-31"] = DOESN'T WORK, no item returned
- date:1979-03-06= OK, It returns the item where dc.date.issued=1979-03-06
So, I tried to replace "-" by nothing: YYYYMMDD, using Edit Item, and search
again:
- date:[1979 TO 1979] = OK, It returns all items where dc.date.issued is like
"1979" or "197906" or "19790403" etc
- date:[19790101 TO 19791231] = OK, It returns all items where dc.date.issued
is like "1979" or "197906" or "19790403" etc
- date:["19790101" TO "19791231"] = OK, It returns all items where
dc.date.issued is like "1979" or "197906" or "19790403" etc
- date:19790306= OK, It returns the item where dc.date.issued=1979-03-06
So, I tried to replace "-" for "A" (any letter, I chose "A"): YYYYAMMADD, using
Edit Item, and search again:
- date:[1979 TO 1979] = OK, It returns all items where dc.date.issued is like
"1979" or "1979A06 or "1979A04A03" etc
- date:[1979A01A01 TO 1979A12A31] = OK, It returns all items where
dc.date.issued is like "1979" or "1979A06" or "1979A04A03" etc
- date:["1979A01A01" TO "1979A12A31"] = OK, It returns all items where
dc.date.issued is like "1979" or "1979A06" or "1979A04A03" etc
- date:1979A03A06= OK, return the item where dc.date.issued=1979A03A06
So, I think that the problem is "-" separator in the date, but is the default
way that DSpace saves date fields in submission.
How can I search a date range if date field uses "-" separator? What is the
correct search syntax?
Thank you
Manuela Klanovicz Ferreira
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel