diff --git a/build.sbt b/build.sbt index 37f0cf9b..2dcf8336 100644 --- a/build.sbt +++ b/build.sbt @@ -15,7 +15,7 @@ val developerURL: String = "https://matthicks.com" name := projectName ThisBuild / organization := org -ThisBuild / version := "0.14.3" +ThisBuild / version := "0.14.4-SNAPSHOT" ThisBuild / scalaVersion := scala213 ThisBuild / crossScalaVersions := allScalaVersions ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation") diff --git a/lucene/src/main/scala/lightdb/lucene/LuceneStore.scala b/lucene/src/main/scala/lightdb/lucene/LuceneStore.scala index e50fe7a2..ceae9495 100644 --- a/lucene/src/main/scala/lightdb/lucene/LuceneStore.scala +++ b/lucene/src/main/scala/lightdb/lucene/LuceneStore.scala @@ -469,6 +469,7 @@ class LuceneStore[Doc <: Document[Doc], Model <: DocumentModel[Doc]](directory: case DefType.Dec => SortField.Type.DOUBLE case DefType.Int => SortField.Type.LONG case DefType.Opt(t) => st(t) + case DefType.Arr(t) => st(t) case _ => throw new RuntimeException(s"Unsupported sort type for ${field.rw.definition}") } val sortType = st(field.rw.definition) @@ -476,6 +477,7 @@ class LuceneStore[Doc <: Document[Doc], Model <: DocumentModel[Doc]](directory: case DefType.Int | DefType.Dec => new SortedNumericSortField(fieldSortName, sortType, dir == SortDirection.Descending) case DefType.Str => new SortField(fieldSortName, sortType, dir == SortDirection.Descending) case DefType.Opt(t) => sf(t) + case DefType.Arr(t) => sf(t) case d => throw new RuntimeException(s"Unsupported sort definition: $d") } sf(field.rw.definition)