Skip to content

Commit

Permalink
Upgrading CAS and various other dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Aug 9, 2024
1 parent 318db33 commit 5f91451
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import co.elastic.clients.elasticsearch._types.query_dsl.DisMaxQuery;
import co.elastic.clients.elasticsearch._types.query_dsl.Query;
import co.elastic.clients.elasticsearch._types.query_dsl.QueryBuilders;
import co.elastic.clients.elasticsearch._types.query_dsl.RangeQuery;
import co.elastic.clients.elasticsearch.core.CountRequest;
import co.elastic.clients.elasticsearch.core.SearchRequest;
import co.elastic.clients.elasticsearch.core.search.Hit;
Expand Down Expand Up @@ -576,26 +577,30 @@ protected Query fillAttrQuery(
break;

case GE:
query = new Query.Builder().range(QueryBuilders.range().
field(schema.getKey()).gte(JsonData.of(value)).build()).
query = new Query.Builder().range(RangeQuery.of(r -> r.untyped(n -> n.
field(schema.getKey()).
gte(JsonData.of(value))))).
build();
break;

case GT:
query = new Query.Builder().range(QueryBuilders.range().
field(schema.getKey()).gt(JsonData.of(value)).build()).
query = new Query.Builder().range(RangeQuery.of(r -> r.untyped(n -> n.
field(schema.getKey()).
gt(JsonData.of(value))))).
build();
break;

case LE:
query = new Query.Builder().range(QueryBuilders.range().
field(schema.getKey()).lte(JsonData.of(value)).build()).
query = new Query.Builder().range(RangeQuery.of(r -> r.untyped(n -> n.
field(schema.getKey()).
lte(JsonData.of(value))))).
build();
break;

case LT:
query = new Query.Builder().range(QueryBuilders.range().
field(schema.getKey()).lt(JsonData.of(value)).build()).
query = new Query.Builder().range(RangeQuery.of(r -> r.untyped(n -> n.
field(schema.getKey()).
lt(JsonData.of(value))))).
build();
break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
import co.elastic.clients.elasticsearch._types.SortOrder;
import co.elastic.clients.elasticsearch._types.query_dsl.Query;
import co.elastic.clients.elasticsearch._types.query_dsl.QueryBuilders;
import co.elastic.clients.elasticsearch._types.query_dsl.RangeQuery;
import co.elastic.clients.elasticsearch._types.query_dsl.TextQueryType;
import co.elastic.clients.elasticsearch.core.CountRequest;
import co.elastic.clients.elasticsearch.core.SearchRequest;
import co.elastic.clients.elasticsearch.core.search.Hit;
import co.elastic.clients.json.JsonData;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.io.IOException;
import java.time.OffsetDateTime;
Expand Down Expand Up @@ -110,16 +110,16 @@ protected Query getQuery(
build());

if (before != null) {
queries.add(new Query.Builder().
range(QueryBuilders.range().
field("when").lte(JsonData.of(before.toInstant().toEpochMilli())).build()).
queries.add(new Query.Builder().range(RangeQuery.of(r -> r.number(n -> n.
field("when").
lte((Double.valueOf(before.toInstant().toEpochMilli())))))).
build());
}

if (after != null) {
queries.add(new Query.Builder().
range(QueryBuilders.range().
field("when").gte(JsonData.of(after.toInstant().toEpochMilli())).build()).
queries.add(new Query.Builder().range(RangeQuery.of(r -> r.number(n -> n.
field("when").
gte((Double.valueOf(after.toInstant().toEpochMilli())))))).
build());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public class ElasticsearchRealmSearchDAO implements RealmSearchDAO {
protected static final List<SortOptions> REALM_SORT_OPTIONS = List.of(
new SortOptions.Builder().
script(s -> s.type(ScriptSortType.Number).
script(t -> t.inline(i -> i.lang(ScriptLanguage.Painless).
source("doc['fullPath'].value.chars().filter(ch -> ch == '/').count()"))).
script(t -> t.lang(ScriptLanguage.Painless).
source("doc['fullPath'].value.chars().filter(ch -> ch == '/').count()")).
order(SortOrder.Asc)).
build());

Expand Down
18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -427,17 +427,17 @@ under the License.

<disruptor.version>3.4.4</disruptor.version>

<elasticsearch.version>8.14.3</elasticsearch.version>
<opensearch.version>2.15.0</opensearch.version>
<elasticsearch.version>8.15.0</elasticsearch.version>
<opensearch.version>2.16.0</opensearch.version>
<opensearch-java.version>2.12.0</opensearch-java.version>

<commons-lang3.version>3.15.0</commons-lang3.version>
<commons-lang3.version>3.16.0</commons-lang3.version>
<commons-jexl.version>3.4.0</commons-jexl.version>
<commons-text.version>1.12.0</commons-text.version>

<pac4j.version>6.0.5</pac4j.version>

<cas.version>7.1.0-RC5</cas.version>
<cas.version>7.1.0-RC6</cas.version>
<cas-client.version>4.0.4</cas-client.version>

<h2.version>2.3.230</h2.version>
Expand All @@ -464,7 +464,7 @@ under the License.
<wicket-jquery-selectors.version>4.0.4</wicket-jquery-selectors.version>
<wicket-spring-boot.version>4.0.0</wicket-spring-boot.version>

<antlr4.version>4.13.1</antlr4.version>
<antlr4.version>4.13.2</antlr4.version>

<curator.version>5.7.0</curator.version>
<zookeeper.version>3.9.2</zookeeper.version>
Expand Down Expand Up @@ -493,7 +493,7 @@ under the License.
<cargo.rmi.port>9805</cargo.rmi.port>
<cargo.deployable.ping.timeout>60000</cargo.deployable.ping.timeout>

<tomcat.version>10.1.26</tomcat.version>
<tomcat.version>10.1.28</tomcat.version>
<wildfly.version>33.0.0.Final</wildfly.version>
<payara.version>6.2024.7</payara.version>
<jakarta.faces.version>4.1.1</jakarta.faces.version>
Expand Down Expand Up @@ -1662,7 +1662,7 @@ under the License.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.0</version>
</plugin>

<plugin>
Expand Down Expand Up @@ -2038,7 +2038,7 @@ under the License.
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.8.0</version>
<version>2.8.1</version>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -2117,7 +2117,7 @@ under the License.
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>2.3.17</version>
<version>2.3.18</version>
</dependency>
</dependencies>
<configuration>
Expand Down

0 comments on commit 5f91451

Please sign in to comment.