Remove index fields that are not yet used
This commit is contained in:
		
							parent
							
								
									3ea4a5ed29
								
							
						
					
					
						commit
						40519dac1a
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -65,10 +65,7 @@ class StatusesIndex < Chewy::Index
 | 
			
		|||
  root date_detection: false do
 | 
			
		||||
    field :id, type: 'long'
 | 
			
		||||
    field :account_id, type: 'long'
 | 
			
		||||
    field :created_at, type: 'date'
 | 
			
		||||
    field :visibility, type: 'keyword'
 | 
			
		||||
    field :from, type: 'keyword', value: ->(status) { status.account.domain ? [status.account.acct] : [status.account.acct, "#{status.account.username}@#{Rails.configuration.x.local_domain}"] }
 | 
			
		||||
    field :domain, value: ->(status) { status.account.domain or Rails.configuration.x.local_domain }
 | 
			
		||||
 | 
			
		||||
    field :text, type: 'text', value: ->(status) { status.searchable_text } do
 | 
			
		||||
      field :stemmed, type: 'text', analyzer: 'content'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue