METHOD_0 ( ) { com . orientechnologies . orient . core . sql . executor . IDENT_0 IDENT_1 = new com . orientechnologies . orient . core . sql . executor . METHOD_1 ( ) ; IDENT_1 . setProperty ( "name" , STRING_0 ) ; IDENT_1 . setProperty ( STRING_1 , STRING_2 ) ; java . lang . Object result = function . execute ( null , null , null , IDENT_1 , null ) ; "<AssertPlaceHolder>" ; } execute ( java . lang . Object , com . orientechnologies . orient . core . db . record . IDENT_2 , java . lang . Object , java . lang . Object [ ] , com . orientechnologies . orient . core . command . IDENT_3 ) { com . orientechnologies . orient . core . record . IDENT_4 element = ( IDENT_5 instanceof com . orientechnologies . orient . core . record . IDENT_4 ) ? ( ( com . orientechnologies . orient . core . record . IDENT_4 ) ( IDENT_5 ) ) : ( ( com . orientechnologies . orient . core . sql . executor . IDENT_6 ) ( IDENT_5 ) ) . METHOD_2 ( ) ; java . lang . String IDENT_7 = ( ( java . lang . String ) ( params [ 0 ] ) ) ; com . orientechnologies . lucene . index . IDENT_8 index = METHOD_3 ( ctx , IDENT_7 ) ; if ( index == null ) return false ; java . lang . String query = ( ( java . lang . String ) ( params [ 1 ] ) ) ; org . apache . lucene . index . IDENT_9 . IDENT_10 IDENT_11 = METHOD_4 ( ctx ) ; com . orientechnologies . lucene . IDENT_12 . List < java . lang . Object > key = index . METHOD_5 ( ) . METHOD_6 ( ) . stream ( ) . map ( ( s ) -> element . getProperty ( s ) ) . collect ( java . util . stream . IDENT_13 . toList ( ) ) ; try { for ( org . apache . lucene . index . IDENT_14 field : index . METHOD_7 ( key ) . METHOD_6 ( ) ) { IDENT_11 . METHOD_8 ( field , index . METHOD_9 ( ) ) ; } com . orientechnologies . orient . core . record . impl . IDENT_15 metadata = METHOD_10 ( params ) ; com . orientechnologies . lucene . query . IDENT_16 IDENT_17 = new com . orientechnologies . lucene . query . METHOD_11 ( new com . orientechnologies . lucene . collections . METHOD_12 ( com . orientechnologies . lucene . IDENT_12 . Arrays . asList ( query ) ) . METHOD_13 ( ctx ) , metadata ) ; return ( IDENT_11 . search ( index . METHOD_14 ( IDENT_17 ) ) ) > FLOAT_0 ; } catch ( com . orientechnologies . lucene . IDENT_12 . IDENT_18 e ) { com . orientechnologies . common . log . IDENT_19 . instance ( ) . error ( this , STRING_3 , e ) ; } return null ; }
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( STRING_0 , STRING_2 ) , result )