Skip to content

Commit

Permalink
Try to fix indexing bug #1410
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Nov 16, 2015
1 parent 2721f61 commit 539e5a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/chewy/articles_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class ArticlesIndex < Chewy::Index
}
)

define_type Article.active.includes(:seller, :title_image, :categories), delete_if: ->(article) { article.sold? || article.closed? } do
define_type Article.active.includes(:seller, :title_image, :categories),
delete_if: ->(article) { article.sold? || article.closed? || article.template? } do
root _source: { excludes: ['content'] } do
field :id, index: :not_analyzed
field :title, type: 'string', analyzer: 'german_analyzer'
Expand Down

0 comments on commit 539e5a8

Please sign in to comment.