-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standalone Filter By Date #1271
Milestone
Comments
antas-marcin
added a commit
that referenced
this issue
Nov 4, 2020
Implemeted ability to search using date fields
antas-marcin
added a commit
that referenced
this issue
Nov 4, 2020
Implemeted ability to search using date fields
antas-marcin
added a commit
that referenced
this issue
Nov 5, 2020
Implemeted ability to search using date fields
antas-marcin
added a commit
that referenced
this issue
Nov 5, 2020
Implemeted ability to search using date fields
antas-marcin
added a commit
that referenced
this issue
Nov 5, 2020
Implemeted ability to search using date fields
antas-marcin
added a commit
that referenced
this issue
Nov 5, 2020
Implemeted ability to search using date fields
antas-marcin
added a commit
that referenced
this issue
Nov 5, 2020
Implemeted ability to search using date fields
antas-marcin
added a commit
that referenced
this issue
Nov 5, 2020
Implemeted ability to search using date fields
antas-marcin
added a commit
that referenced
this issue
Nov 5, 2020
Implemented ability to search using date fields
etiennedi
added a commit
that referenced
this issue
Nov 5, 2020
…r-by-date gh-1271 Standalone Filter By Date
Closed in #1276 - I think the PR was missing the link to this issue so it would have been auto-closed? |
antas-marcin
added a commit
that referenced
this issue
Nov 6, 2020
etiennedi
added a commit
that referenced
this issue
Nov 9, 2020
…h-support gh-1271 Standalone string/text filter with more than a single word
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
One of the supported dataTypes in Weaviate is
date
, which takes an RFC3339-formatted date string.It should be possible to use the typical compare operators (
Equal
,LessThan
, etc.) on dates, however, that's currently not implemented yet in Standalone.Example:
The following query shows the error message that one would encounter:
To reproduce this, you can start with a blank weaviate and import the following schema and data:
Goals
Equal
returns objects where the date matches exactlyLessThan
returns objects where the date is older than the query dateLessThanEqual
returns objects where the date is older than or equal the query dateGreaterThan
andGreaterThanEqual
Todos
tbd
Tech Overview
int
query, we store the property value as a Lexicographically Sortable Int[]byte
, meaning that a "less than 5" query would affect all rows from the beginning up until the row that stores 5. We can use the same for dates. I think there are two different ways we could approach this:[]byte
which should in itself be lexicographically sortable. Possible Disadvantages: We'd need to normalize for the timezone, otherwise it's hard to tell in the inverted index if a date is really smaller/larger.The text was updated successfully, but these errors were encountered: