Skip to content

Commit

Permalink
Migrate from ValueConvert to ValueModel
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Aug 27, 2024
1 parent d0dad52 commit 7e1825c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/quarkus/search/app/SearchService.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import io.quarkus.runtime.LaunchMode;

import org.hibernate.search.engine.search.common.BooleanOperator;
import org.hibernate.search.engine.search.common.ValueConvert;
import org.hibernate.search.engine.search.common.ValueModel;
import org.hibernate.search.engine.search.predicate.dsl.SimpleQueryFlag;
import org.hibernate.search.mapper.pojo.standalone.mapping.SearchMapping;

Expand Down Expand Up @@ -104,7 +104,7 @@ public SearchResult<GuideSearchHit> search(@RestQuery @DefaultValue(QuarkusVersi
.defaultOperator(BooleanOperator.AND))
.should(f.match().field("origin").matching("quarkus").boost(50.0f))
.should(f.not(f.match().field(language.addSuffix("topics"))
.matching("compatibility", ValueConvert.NO))
.matching("compatibility", ValueModel.INDEX))
.boost(50.0f)));
}
})
Expand Down

0 comments on commit 7e1825c

Please sign in to comment.