Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Nov 5, 2024
1 parent 5b6d3a5 commit 3de244a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ public static void beforeAll() throws Exception {
var dir = FSDirectory.open(directory);
var data = TestFiles.resolve("baremaps-testing/data/samples/example.parquet");
var config = new IndexWriterConfig(GeocoderConstants.ANALYZER);
try (var indexWriter = new IndexWriter(dir, config);
var inputStream = Files.newInputStream(data)) {
try (var indexWriter = new IndexWriter(dir, config)) {
indexWriter.deleteAll();
var documents = new GeoParquetDataTable(data.toUri())
.stream()
Expand All @@ -74,6 +73,7 @@ public static void afterAll() throws IOException {
@Test
void testQueryNoHits() throws Exception {
var geonamesQuery = new DataTableQueryBuilder()
.column("continent", 1.0f)
.query("test")
.build();
var topDocs = searcher.search(geonamesQuery, 1);
Expand Down

0 comments on commit 3de244a

Please sign in to comment.