Skip to content

Commit

Permalink
fix: addresses null key prefix when indices already created (resolves g…
Browse files Browse the repository at this point in the history
  • Loading branch information
bsbodden committed Nov 4, 2022
1 parent 9e687e4 commit a708535
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ public void createIndexFor(Class<?> cl) {

index.setPrefixes(entityPrefix);
IndexOptions ops = Client.IndexOptions.defaultOptions().setDefinition(index);
opsForSearch.createIndex(schema, ops);
addKeySpaceMapping(entityPrefix, cl);
opsForSearch.createIndex(schema, ops);


// TTL
if (cl.isAnnotationPresent(Document.class)) {
Expand Down

0 comments on commit a708535

Please sign in to comment.