package Ġcz . v ut br . fit . k not . entic ing . index . reg res Ċ Ċ import Ġcz . v ut br . fit . k not . entic ing . dto . interval . sub List Ċ import Ġcz . v ut br . fit . k not . entic ing . eql . compiler . E ql Compiler Ċ import Ġcz . v ut br . fit . k not . entic ing . eql . compiler . ast . E ql Ast Node Ċ import Ġcz . v ut br . fit . k not . entic ing . eql . compiler . matching . Document Match Ċ import Ġcz . v ut br . fit . k not . entic ing . index . boundary . Indexed Document Ċ import Ġcz . v ut br . fit . k not . entic ing . index . boundary . Match Info Ċ import Ġcz . v ut br . fit . k not . entic ing . index . collection . manager . post process . match Document Ċ import Ġcz . v ut br . fit . k not . entic ing . index . mg 4 j . Mg 4 j Document Factory Ċ import Ġcz . v ut br . fit . k not . entic ing . index . mg 4 j . Mg 4 j Single File Document Collection Ċ import Ġcz . v ut br . fit . k not . entic ing . index . test config . dummy Metadata Configuration Ċ import Ġcz . v ut br . fit . k not . entic ing . log . Simple Stdout LoggerFactory Ċ import Ġjava . io . File Ċ Ċ fun Ġload Document ( path : ĠString ): ĠIndexed Document Ġ{ ĊĠĠĠ Ġval Ġfactory Ġ= ĠM g 4 j Document Factory ( dummy Metadata Configuration , ĠSimple Stdout LoggerFactory ) ĊĠĠĠ Ġval Ġcollection Ġ= ĠM g 4 j Single File Document Collection ( File ( path ), Ġfactory , ĠSimple Stdout LoggerFactory ) ĊĠĠĠ Ġreturn Ġcollection . document ( 0 ) Ċ } Ċ Ċ private Ġconst Ġval ĠREG RES _ FOLDER Ġ= Ġ"../ data / reg res /" ĊĊ Ċ fun ĠIndexed Document . load Text ( match : ĠDocument Match ) Ġ= Ġthis . content [ dummy Metadata Configuration . indexes . getValue ( dummy Metadata Configuration . default Index ). column Index ] ĊĠĠĠĠĠĠĠ Ġ. sub List ( match . interval ) ĊĠĠĠĠĠĠĠ Ġ. join ToString (" Ġ") ĊĊ Ċ abstract Ġclass ĠAbstract Document Matching RegressionTest ( document Name : ĠString ) Ġ{ ĊĊĠĠĠ Ġprotected Ġval Ġtested Document Ġ= Ġload Document ("$ REG RES _ FOLDER $ document Name . mg 4 j ") ĊĊĠĠĠ Ġprivate Ġval Ġcompiler Ġ= ĠE ql Compiler ( Simple Stdout LoggerFactory ) ĊĊĠĠĠ Ġprotected Ġfun Ġsubmit Query ( query : ĠString ): ĠMatch Info Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġast Ġ= Ġcompiler . parse OrFail ( query , Ġdummy Metadata Configuration ) Ġas ĠE ql Ast Node ĊĠĠĠĠĠĠĠ Ġreturn Ġmatch Document ( ast , Ġtested Document , Ġ" token ", Ġ 0 , Ġdummy Metadata Configuration , Ġtested Document . interval ) ĊĠĠĠ Ġ} Ċ }