Annotation Type Document
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Document
Annotation that specifies that the value returned by the annotated value should be analyzed for properties to be indexed and/or stored by SOLR, when encountered in the root document. This annotation is inherited and can be overridden.- See Also:
ReferDocument
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends DocumentAdapter>
adapter
Class of an object implementing the DocumentAdapter interface, which allows for changing the return value before it is scanned.boolean
inheritLanguage
Returns whether the language of the sub-document should be inherited from the language of the document containing this annotation, or its own language should be used.
-
-
-
Element Detail
-
adapter
Class<? extends DocumentAdapter> adapter
Class of an object implementing the DocumentAdapter interface, which allows for changing the return value before it is scanned. Defaults to a no-op adapter. The implementing class should have a zero args constructor. If the same adapter is used multiple times, as single instance can (and will) be used for multiple values.- Returns:
- the class of the adapter to use
- Default:
- nl.gx.webmanager.services.contentindex.adapter.DocumentAdapter.Identity.class
-
-