@BeforeEach
    void initialize() throws Exception {
        this.luceneSearchService = new LuceneSearchService(
            new File(FileUtils.getTempDirectory(), UUID.randomUUID().toString()),
            List.of("records", "metadata"),
            List.of("id", "name", "description"));
        luceneSearchService.deleteIndexes();
        try (val in = new ClassPathResource("records.json").getInputStream()) {
            luceneSearchService.createIndexes(in);
        }
    }
This is {@link LuceneSearchServiceTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-lucene/src/test/java/org/apereo/cas/lucene/LuceneSearchServiceTests.java