Skip to content

Commit

Permalink
Don’t index images in typesense
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Oct 14, 2024
1 parent 5e1bc47 commit 082ae9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/indices/concerns/typesense_media_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module TypesenseMediaIndex
token_separators(*%w[/ - ( ) + ; : & , .])

# Poster
field 'poster_image', type: 'object', optional: true, facet: false
field 'poster_image', type: 'object', optional: true, facet: false, index: false

# Titles
field 'canonical_title', type: 'string'
Expand Down
2 changes: 1 addition & 1 deletion app/indices/typesense_groups_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TypesenseGroupsIndex < TypesenseBaseIndex
index_name 'groups'

schema do
field 'avatar_image', type: 'object', optional: true, facet: false
field 'avatar_image', type: 'object', optional: true, facet: false, index: false
field 'name', type: 'string'
field 'slug', type: 'string'
field 'tagline', type: 'string', optional: true
Expand Down
2 changes: 1 addition & 1 deletion app/indices/typesense_users_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TypesenseUsersIndex < TypesenseBaseIndex
index_name 'users'

schema do
field 'avatar_image', type: 'object', optional: true, facet: false
field 'avatar_image', type: 'object', optional: true, facet: false, index: false
field 'name', type: 'string'
field 'past_names', type: 'string[]'
field 'slug', type: 'string', optional: true
Expand Down

0 comments on commit 082ae9b

Please sign in to comment.