Skip to content

Commit

Permalink
un-hide async()
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Oct 9, 2023
1 parent 249e0eb commit c77db6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,10 @@ private FTCreateParams createIndexDefinition(Class<?> cl, IndexDataType idxType)

if (cl.isAnnotationPresent(Document.class)) {
Document document = cl.getAnnotation(Document.class);
//params.setAsync(document.async());
// params.setAsync(document.async()); // TODO:
if (document.async()) {
throw new UnsupportedOperationException("ASYNC is not supported.");
}
Optional.ofNullable(document.filter()).filter(ObjectUtils::isNotEmpty).ifPresent(params::filter);
Optional.ofNullable(document.language()).filter(ObjectUtils::isNotEmpty).ifPresent(lang -> params.language(lang.getValue()));
Optional.ofNullable(document.languageField()).filter(ObjectUtils::isNotEmpty).ifPresent(params::languageField);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@AliasFor(annotation = KeySpace.class, attribute = "value")
String value() default "";

//boolean async() default false;
boolean async() default false; // TODO:
String[] prefixes() default {};
String filter() default "";
String languageField() default "";
Expand Down

0 comments on commit c77db6c

Please sign in to comment.