Annotation Type ReferDocument


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public @interface ReferDocument
    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 containing document is included by an other document, by means of @Document or @ReferDocument. This annotation is inherited and can be overridden.
    See Also:
    Document
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<? extends DocumentAdapter> adapter
      Class of an object implementing the SubDocumentAdapter 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 SubDocumentAdapter 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
      • inheritLanguage

        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. Defaults to false.
        Returns:
        true or (default) false
        Default:
        false