File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed
lib/blacklight/elasticsearch Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,20 @@ def seed_index docs
42
42
43
43
# TODO: move this to a yaml file
44
44
connection . indices . create index :, body : {
45
+ settings : {
46
+ analysis : {
47
+ analyzer : {
48
+ foo : {
49
+ type : "custom" ,
50
+ tokenizer : "standard" ,
51
+ filter : %w[
52
+ lowercase
53
+ asciifolding
54
+ ]
55
+ }
56
+ }
57
+ }
58
+ } ,
45
59
mappings : {
46
60
properties : {
47
61
format : { type : 'keyword' } ,
@@ -51,7 +65,7 @@ def seed_index docs
51
65
lc_1letter_ssim : { type : 'keyword' } ,
52
66
subject_geo_ssim : { type : 'keyword' } ,
53
67
subject_era_ssim : { type : 'keyword' } ,
54
- all_text_timv : { type : 'text' }
68
+ all_text_timv : { type : 'text' , analyzer : "foo" , search_analyzer : "foo" }
55
69
}
56
70
}
57
71
}
Original file line number Diff line number Diff line change 4
4
5
5
class Blacklight ::Elasticsearch ::Request < ActiveSupport ::HashWithIndifferentAccess
6
6
# This is similar to qf in Solr
7
- cattr_accessor :query_fields , default : %w[ id
8
- full_title_tsim
9
- short_title_tsim
10
- alternative_title_tsim
11
- active_fedora_model_ssi
12
- title_tsim
13
- author_tsim
14
- subject_tsim
15
- all_text_timv ]
7
+ cattr_accessor :query_fields , default : %w[ all_text_timv ]
16
8
def initialize ( constructor = { } )
17
9
if constructor . is_a? ( Hash )
18
10
super ( )
You can’t perform that action at this time.
0 commit comments