analyzers.put("_uuid", new GeoNetworkAnalyzer());
analyzers.put("parentUuid", new GeoNetworkAnalyzer());
analyzers.put("operatesOn", new GeoNetworkAnalyzer());
analyzers.put("subject", new KeywordAnalyzer());
_analyzer = new PerFieldAnalyzerWrapper(new GeoNetworkAnalyzer(), analyzers);
final String configFile = "/WEB-INF/config-lucene.xml";
final String appDir = new File(LuceneQueryTest.class.getResource(configFile).getFile()).getParentFile().getParent()+"/";
final GeonetworkDataDirectory dataDirectory = new GeonetworkDataDirectory();
dataDirectory.init("test", appDir, new ServiceConfig(), null);