Skip to content

Commit

Permalink
Add is_null to start_date/end_date
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Oct 19, 2024
1 parent 317e631 commit 897f06a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/indices/concerns/typesense_media_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ module TypesenseMediaIndex

# Start and end dates
field 'start_date', type: 'object', optional: true
field 'start_date.is_null', type: 'bool', facet: true, optional: true
field 'start_date.year', type: 'int32', facet: true, optional: true
field 'start_date.month', type: 'int32', facet: true, optional: true
field 'start_date.day', type: 'int32', facet: true, optional: true
field 'start_date.timestamp', type: 'int64', optional: true
field 'end_date', type: 'object', optional: true
field 'end_date.is_null', type: 'bool', facet: true, optional: true
field 'end_date.year', type: 'int32', facet: true, optional: true
field 'end_date.month', type: 'int32', facet: true, optional: true
field 'end_date.day', type: 'int32', facet: true, optional: true
Expand Down

0 comments on commit 897f06a

Please sign in to comment.