@@ -243,7 +243,7 @@ public EntitySearchFilter getEntityFilter() throws EntException {
243243 AttributeInterface attribute = this .getAttribute ();
244244 if (attribute instanceof ITextAttribute ) {
245245 String text = this .getFormFieldValues ().get (this .getFormFieldNames ()[0 ]);
246- filter = new EntitySearchFilter (attribute .getName (), true , text , true );
246+ filter = new EntitySearchFilter < String > (attribute .getName (), true , text , true );
247247 if (attribute .isMultilingual ()) {
248248 filter .setLangCode (this .getCurrentLang ().getCode ());
249249 }
@@ -252,7 +252,7 @@ public EntitySearchFilter getEntityFilter() throws EntException {
252252 String end = this .getFormFieldValues ().get (this .getFormFieldNames ()[1 ]);
253253 Date startDate = DateConverter .parseDate (start , this .getDateFormat ());
254254 Date endDate = DateConverter .parseDate (end , this .getDateFormat ());
255- filter = new EntitySearchFilter (attribute .getName (), true , startDate , endDate );
255+ filter = new EntitySearchFilter < Date > (attribute .getName (), true , startDate , endDate );
256256 } else if (attribute instanceof BooleanAttribute ) {
257257 String value = this .getFormFieldValues ().get (this .getFormFieldNames ()[0 ]);
258258 String ignore = this .getFormFieldValues ().get (this .getFormFieldNames ()[1 ]);
@@ -263,7 +263,7 @@ public EntitySearchFilter getEntityFilter() throws EntException {
263263 filter = new EntitySearchFilter (attribute .getName (), true );
264264 filter .setNullOption (true );
265265 } else {
266- filter = new EntitySearchFilter (attribute .getName (), true , value , false );
266+ filter = new EntitySearchFilter < String > (attribute .getName (), true , value , false );
267267 }
268268 } else if (attribute instanceof NumberAttribute ) {
269269 String start = this .getFormFieldValues ().get (this .getFormFieldNames ()[0 ]);
@@ -278,7 +278,7 @@ public EntitySearchFilter getEntityFilter() throws EntException {
278278 Integer endNumberInt = Integer .parseInt (end );
279279 endNumber = new BigDecimal (endNumberInt );
280280 } catch (Throwable t ) {}
281- filter = new EntitySearchFilter (attribute .getName (), true , startNumber , endNumber );
281+ filter = new EntitySearchFilter < BigDecimal > (attribute .getName (), true , startNumber , endNumber );
282282 }
283283 } catch (Throwable t ) {
284284 _logger .error ("Error extracting entity search filters" , t );
@@ -308,14 +308,14 @@ public SearchEngineFilter extractFilter() {
308308 if (!this .isAttributeFilter ()) {
309309 if (this .getKey ().equals (KEY_FULLTEXT ) && !StringUtils .isEmpty (value0 )) {
310310 //String[] fieldsSuffix = {"", "_option"};
311- filter = new SearchEngineFilter (this .getCurrentLang ().getCode (), value0 , this .getOption (value1 ));
311+ filter = new SearchEngineFilter <> (this .getCurrentLang ().getCode (), value0 , this .getOption (value1 ));
312312 } else if (this .getKey ().equals (KEY_CATEGORY ) && !StringUtils .isEmpty (value0 )) {
313- filter = new SearchEngineFilter (IIndexerDAO .CONTENT_CATEGORY_FIELD_NAME , value0 , SearchEngineFilter .TextSearchOption .EXACT );
313+ filter = new SearchEngineFilter <> (IIndexerDAO .CONTENT_CATEGORY_FIELD_NAME , value0 , SearchEngineFilter .TextSearchOption .EXACT );
314314 }
315315 } else {
316316 AttributeInterface attribute = this .getAttribute ();
317317 if (attribute instanceof ITextAttribute && !StringUtils .isEmpty (value0 )) {
318- filter = new SearchEngineFilter (this .getIndexFieldName (), value0 , SearchEngineFilter .TextSearchOption .EXACT );
318+ filter = new SearchEngineFilter <> (this .getIndexFieldName (), value0 , SearchEngineFilter .TextSearchOption .EXACT );
319319 //String[] fieldsSuffix = {"_textFieldName"};
320320 } else if (attribute instanceof DateAttribute &&
321321 (!StringUtils .isEmpty (value0 ) || !StringUtils .isEmpty (value1 ))) {
@@ -328,10 +328,10 @@ public SearchEngineFilter extractFilter() {
328328 big1 = DateConverter .parseDate (value1 , this .getDateFormat ());
329329 } catch (Exception e ) {}
330330 //String[] fieldsSuffix = {"_dateStartFieldName", "_dateEndFieldName"};
331- filter = new SearchEngineFilter (this .getIndexFieldName (), big0 , big1 );
331+ filter = new SearchEngineFilter <> (this .getIndexFieldName (), big0 , big1 );
332332 } else if (attribute instanceof BooleanAttribute &&
333333 (!StringUtils .isEmpty (value0 ) && !StringUtils .isEmpty (value1 ))) {
334- filter = new SearchEngineFilter (this .getIndexFieldName (), value0 , SearchEngineFilter .TextSearchOption .EXACT );
334+ filter = new SearchEngineFilter <> (this .getIndexFieldName (), value0 , SearchEngineFilter .TextSearchOption .EXACT );
335335 //String[] fieldsSuffix = {"_booleanFieldName", "_booleanFieldName_ignore", "_booleanFieldName_control"};
336336 } else if (attribute instanceof NumberAttribute &&
337337 (!StringUtils .isEmpty (value0 ) || !StringUtils .isEmpty (value1 ))) {
@@ -346,7 +346,7 @@ public SearchEngineFilter extractFilter() {
346346 big1 = new BigDecimal (value1 );
347347 } catch (Exception e ) {
348348 }
349- filter = new SearchEngineFilter (this .getIndexFieldName (), big0 , big1 );
349+ filter = new SearchEngineFilter <> (this .getIndexFieldName (), big0 , big1 );
350350 }
351351 }
352352 return filter ;
0 commit comments