Change search indexing to use batches to minimize resource usage (#18451)
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
class AccountsIndex < Chewy::Index
 | 
			
		||||
  settings index: { refresh_interval: '5m' }, analysis: {
 | 
			
		||||
  settings index: { refresh_interval: '30s' }, analysis: {
 | 
			
		||||
    analyzer: {
 | 
			
		||||
      content: {
 | 
			
		||||
        tokenizer: 'whitespace',
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
class StatusesIndex < Chewy::Index
 | 
			
		||||
  include FormattingHelper
 | 
			
		||||
 | 
			
		||||
  settings index: { refresh_interval: '15m' }, analysis: {
 | 
			
		||||
  settings index: { refresh_interval: '30s' }, analysis: {
 | 
			
		||||
    filter: {
 | 
			
		||||
      english_stop: {
 | 
			
		||||
        type: 'stop',
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
class TagsIndex < Chewy::Index
 | 
			
		||||
  settings index: { refresh_interval: '15m' }, analysis: {
 | 
			
		||||
  settings index: { refresh_interval: '30s' }, analysis: {
 | 
			
		||||
    analyzer: {
 | 
			
		||||
      content: {
 | 
			
		||||
        tokenizer: 'keyword',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user