Skip to content

Commit

Permalink
HSEARCH-4786 Fix non-compiling code in migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Jan 24, 2023
1 parent 57508f2 commit 9bb6f2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions documentation/src/main/asciidoc/migration/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2093,7 +2093,8 @@ SearchPredicate topLevelPredicate = pf.bool( b -> {
for ( SearchPredicate predicate : predicates ) {
b.must( predicate );
}
} );
} )
.toPredicate();
List<Book> hits = searchSession.search( Book.class )
.where( topLevelPredicate )
Expand Down Expand Up @@ -3048,7 +3049,7 @@ Analyzer searchAnalyzer = mapping.indexedEntity( Book.class ).indexManager()
.unwrap( LuceneIndexManager.class ).searchAnalyzer();
// Get the search analyzer for a given index
Analyzer searchAnalyzer = mapping.indexexManager( "Book" ).indexManager()
Analyzer searchAnalyzer = mapping.indexManager( "Book" ).indexManager()
.unwrap( LuceneIndexManager.class ).searchAnalyzer();
----

Expand Down

0 comments on commit 9bb6f2f

Please sign in to comment.