Skip to content

Commit

Permalink
OpenSearch updates (#109)
Browse files Browse the repository at this point in the history
* Update studio version. Import ES class to it is updated properly by UM

* Increase plugin version
  • Loading branch information
jmendeza authored May 18, 2023
1 parent 9619d2a commit ef3eefc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/studio/studio_version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<studio>
<version>4.0.0</version>
<version>4.0.0.1</version>
</studio>
2 changes: 1 addition & 1 deletion craftercms-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugin:
version:
major: 2
minor: 0
patch: 35
patch: 36
description: |
A versatile blog blueprint.
website:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package org.craftercms.sites.wordify
import co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery
import co.elastic.clients.elasticsearch._types.query_dsl.Query
import co.elastic.clients.elasticsearch._types.query_dsl.TextQueryType
import co.elastic.clients.elasticsearch._types.SortOrder
import org.apache.commons.lang3.StringUtils
import org.craftercms.engine.service.UrlTransformationService
import org.craftercms.search.elasticsearch.client.ElasticsearchClientWrapper
Expand Down Expand Up @@ -168,7 +169,7 @@ class SearchHelper {
.sort(s -> s
.field(f -> f
.field('lastModifiedDate_dt')
.order(co.elastic.clients.elasticsearch._types.SortOrder.Desc)
.order(SortOrder.Desc)
)
)
, Map.class)
Expand Down

0 comments on commit ef3eefc

Please sign in to comment.