3 # Copyright © 2018 Amdocs, Bell Canada, AT&T
 
   5 # Licensed under the Apache License, Version 2.0 (the "License");
 
   6 # you may not use this file except in compliance with the License.
 
   7 # You may obtain a copy of the License at
 
   9 #       http://www.apache.org/licenses/LICENSE-2.0
 
  11 # Unless required by applicable law or agreed to in writing, software
 
  12 # distributed under the License is distributed on an "AS IS" BASIS,
 
  13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  14 # See the License for the specific language governing permissions and
 
  15 # limitations under the License.
 
  18 <beans xmlns="http://www.springframework.org/schema/beans"
 
  19   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
  21          http://www.springframework.org/schema/beans
 
  22          http://www.springframework.org/schema/beans/spring-beans.xsd">
 
  24          <bean id="aggregateVnfSearchProvider"
 
  25             class="org.onap.aai.sparky.aggregatevnf.search.AggregateVnfSearchProvider">
 
  26             <constructor-arg ref="searchServiceAdapter"/>
 
  27             <constructor-arg name="autoSuggestIndexName" value="entityautosuggestindex"/>
 
  28             <constructor-arg name="vnfSearchSuggestionRoute" value="vnfSearch"/>
 
  31           <bean id="aggregateSummaryProcessor"
 
  32             class="org.onap.aai.sparky.aggregatevnf.search.AggregateSummaryProcessor">
 
  33             <constructor-arg ref="elasticSearchAdapter"/>
 
  34             <constructor-arg ref="filtersConfig"/>
 
  35             <property name="vnfAggregationIndexName" value="aggregate_generic-vnf_index"/>
 
  38           <bean id="registerAggregateVnfSearchProvider"
 
  39             class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
 
  40             <property name="targetObject" ref="searchProviderRegistry"/>
 
  41             <property name="targetMethod">
 
  42               <value>addSearchProviders</value>
 
  44             <property name="arguments">
 
  45               <list value-type="org.onap.aai.sparky.search.api.SearchProvider">
 
  46                 <ref bean="aggregateVnfSearchProvider"/>