@@ -101,14 +101,14 @@ class PageSearchBase(RTDFacetedSearch):
101
101
doc_types = [PageDocument ]
102
102
index = PageDocument ._doc_type .index
103
103
104
- outer_fields = ['title' ]
105
- section_fields = ['sections.title' , 'sections.content' ]
106
- domain_fields = [
104
+ _outer_fields = ['title' ]
105
+ _section_fields = ['sections.title' , 'sections.content' ]
106
+ _domain_fields = [
107
107
'domains.type_display' ,
108
108
'domains.name' ,
109
109
'domains.display_name' ,
110
110
]
111
- fields = outer_fields
111
+ fields = _outer_fields
112
112
113
113
# need to search for both 'and' and 'or' operations
114
114
# the score of and should be higher as it satisfies both or and and
@@ -125,7 +125,7 @@ def query(self, search, query):
125
125
sections_nested_query = self .generate_nested_query (
126
126
query = query ,
127
127
path = 'sections' ,
128
- fields = self .section_fields ,
128
+ fields = self ._section_fields ,
129
129
inner_hits = {
130
130
'highlight' : {
131
131
'number_of_fragments' : 1 ,
@@ -141,7 +141,7 @@ def query(self, search, query):
141
141
domains_nested_query = self .generate_nested_query (
142
142
query = query ,
143
143
path = 'domains' ,
144
- fields = self .domain_fields ,
144
+ fields = self ._domain_fields ,
145
145
inner_hits = {
146
146
'highlight' : {
147
147
'number_of_fragments' : 1 ,
0 commit comments