This project implements the Lucene file indexing and search demo in Scala / Dotty.
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 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.