File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/DsElasticSearchBundle/OutputChannel Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,10 @@ public function getResult(SearchContainerInterface $searchContainer): SearchCont
120
120
return $ searchContainer ;
121
121
}
122
122
123
- $ client = $ this ->clientBuilder ->build ($ this ->outputChannelContext ->getIndexProviderOptions ());
124
- $ queryService = new IndexQueryService ($ client , $ this ->outputChannelContext ->getIndexProviderOptions ());
125
-
126
123
$ runtimeOptions = $ this ->outputChannelContext ->getRuntimeOptions ();
124
+ $ indexProviderOptions = $ this ->outputChannelContext ->getIndexProviderOptions ();
125
+
126
+ $ client = $ this ->clientBuilder ->build ($ this ->outputChannelContext ->getIndexProviderOptions ());
127
127
128
128
$ currentPage = is_numeric ($ runtimeOptions ['current_page ' ]) ? (int ) $ runtimeOptions ['current_page ' ] : 1 ;
129
129
$ limit = $ this ->options ['result_limit ' ] > 0 ? $ this ->options ['result_limit ' ] : 10 ;
@@ -138,7 +138,7 @@ public function getResult(SearchContainerInterface $searchContainer): SearchCont
138
138
$ query ->setSize ($ limit );
139
139
140
140
$ params = [
141
- 'index ' => ' default ' ,
141
+ 'index ' => $ indexProviderOptions [ ' index ' ][ ' identifier ' ] ,
142
142
'body ' => $ query ->toArray (),
143
143
];
144
144
You can’t perform that action at this time.
0 commit comments