Skip to content

Commit

Permalink
updated mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
deepikagonuguntla committed Nov 25, 2024
1 parent af22384 commit e476b6e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions lib/tasks/elasticsearch.rake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace :elasticsearch do
type: 'keyword'
}
},
analyzer: 'default'
analyzer: 'ts_analyzer'
},
description: {
type: 'text',
Expand All @@ -32,7 +32,7 @@ namespace :elasticsearch do
type: 'keyword'
}
},
analyzer: 'default'
analyzer: 'ts_analyzer'
},
contents: {
type: 'text',
Expand All @@ -41,7 +41,7 @@ namespace :elasticsearch do
type: 'keyword'
}
},
analyzer: 'default'
analyzer: 'ts_analyzer'
},
grade_begin: { type: 'long' },
grade_end: { type: 'long' },
Expand Down Expand Up @@ -73,8 +73,7 @@ namespace :elasticsearch do
}
},
primary_language: {
type: 'text',
fielddata: true
type: 'keyword'
},
available_copies: { type: 'long' },
bnumber: {
Expand All @@ -84,12 +83,10 @@ namespace :elasticsearch do
}
},
set_type: {
type: 'text',
fielddata: true
type: 'keyword'
},
area_of_study: {
type: 'text',
fielddata: true
type: 'keyword'
},
created_at: {
type: 'date',
Expand Down

0 comments on commit e476b6e

Please sign in to comment.