You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/src/main/asciidoc/migration/index.adoc
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,37 @@ to be in a more consistent format compared with other logging categories.
119
119
- Hibernate Search now uses logging categories instead of class names to log messages.
120
120
See link:https://docs.jboss.org/hibernate/search/{hibernateSearchVersionShort}/reference/en-US/html_single/#logging-categories-aggregated[Appendix B: List of all available logging categories]
121
121
to find out what categories are available.
122
+
- With introduction of the field references (`org.hibernate.search.engine.search.reference.pass:[*]`) most of the Search DSL
123
+
interfaces (`org.hibernate.search.engine.search.pass:[*].dsl.pass:[*]`) got an extra type argument `SR` (scope root type).
124
+
In simple scenarios where the query is created in one go there will be no code changes required:
125
+
+
126
+
[source,java,subs="+attributes"]
127
+
----
128
+
List<Book> result = searchSession.search( Book.class )
129
+
.where( f -> f.match().field( "title" ).matching( "robot" ) )
130
+
.fetchHits( 20 );
131
+
----
132
+
+
133
+
In scenarios where there's work with the affected Search DSL interfaces is required user can choose between one of the following options:
134
+
+
135
+
====
136
+
[source,java,subs="+attributes"]
137
+
----
138
+
var scope = searchSession.scope( Book.class ); // <1>
0 commit comments