/lucene-scala-demo

Lucene index and search demo with Scala / Dotty

Primary LanguageScalaApache License 2.0Apache-2.0

Lucene demo with Scala / Dotty

This project implements the Lucene file indexing and search demo in Scala / Dotty.

Compile / test / run

This project uses sbt as a build tool. To index a directory or file, use the command

sbt runMain IndexFiles -directory path/to/files

To search over your newly-created index, try

sbt runMain SearchFiles dotty

For more information on the sbt-dotty plugin, see the dotty-example-project.

You can compile using sbt compile, test with sbt test, enter interactive mode with sbt shell, or spin up a Dotty REPL with sbt console.

Dotty, you say?

Dotty represents the future of Scala. While the two languages are not fully compatible, if you've programmed in Scala but haven't heard of Dotty, you probably won't notice any differences than a significantly faster build.

You can learn more about Dotty from Dotty's documentation, or just get an overview of the changes by perusing Martin Odersky's slides.