Skip to content

Commit

Permalink
Update turing-api-search-between-dates.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alegauss committed Nov 6, 2024
1 parent ec4b274 commit 441f958
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
===== Between Dates
===== Dates

Search on the semantic navigation site between Dates

IMPORTANT: You will use `fq[]`, `fq.and[]` and `fq.or[]` (query string) or `fq`, `fqAnd`, `fqOr` (request body) to define the dates using the expression with the following date format: `yyyy-MM-dd'T'HH:mm:ss'Z`

====== Between Dates
===== Between Dates
....
fq[]=attribute:[InitialDate TO EndDate].
....

======= Example - Request
====== Example - Request
```bash
curl -X 'GET' \
'http://localhost:2700/api/sn/Sample/search?q=foobar&_setlocale=en_US&fq[]=modificationDate:[2023-07-23T00:00:00Z+TO+2023-11-30T00:00:00Z]' \
Expand All @@ -21,7 +21,7 @@ curl -X 'GET' \
fq[]=attribute:[InitialDate TO *].
....

===== Example - Request
====== Example - Request
```bash
curl -X 'GET' \
'http://localhost:2700/api/sn/Sample/search?q=foobar&_setlocale=en_US&fq[]=modificationDate:[2023-07-23T00:00:00Z+TO+*]' \
Expand All @@ -33,7 +33,7 @@ curl -X 'GET' \
fq[]=attribute:[* TO EndDate].
....

===== Example - Request
====== Example - Request
```bash
curl -X 'GET' \
'http://localhost:2700/api/sn/Sample/search?q=foobar&_setlocale=en_US&fq[]=modificationDate:[*+TO+2023-11-30T00:00:00Z]' \
Expand Down

0 comments on commit 441f958

Please sign in to comment.