Merge branch 'search-engine' into staging

This commit is contained in:
f 2021-05-17 17:27:31 -03:00
commit db8ed8d776
2 changed files with 5 additions and 1 deletions

View file

@ -77,6 +77,10 @@ class MetadataBelongsTo < MetadataRelatedPosts
@related_methods ||= %i[belongs_to belonged_to].freeze
end
def indexable_values
belongs_to&.title&.value
end
private
def post_exists?

View file

@ -23,7 +23,7 @@ class MetadataRelatedPosts < MetadataArray
end
def indexable_values
values.keys
posts.where(uuid: value).map(&:title).map(&:value)
end
private