Annotation Type Indexable


  • @Documented
    @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Indexable
    Indicates that the annotated class should be indexed by SOLR. The annotation is not inherited. If this annotation is present on a class all Property annotations will not be used anymore for indexing. Instead, only the Field annotated methods are indexed. If this annotation is not present, it is the other way around. This preserves backwards compatibility.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<?> extension
      Class of an object implementing the DocumentAdapter interface, which allows for changing the class to index before it is scanned.
      Class<? extends LanguageGetter> languageGetter
      Class of an object implementing the LanguageGetter interface that acts as a function from document to language.
      boolean runtimegenerated
      Returns whether the class is a runtime generated class.
    • Element Detail

      • extension

        Class<?> extension
        Class of an object implementing the DocumentAdapter interface, which allows for changing the class to index 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:
        void.class
      • languageGetter

        Class<? extends LanguageGetter> languageGetter
        Class of an object implementing the LanguageGetter interface that acts as a function from document to language. Defaults to null (i.e. no language). The implementing class should have a zero args constructor. If the same language getter is used multiple times, a single instance can (and will) be used for multiple values.
        Returns:
        the language getter class
        Default:
        nl.gx.webmanager.services.contentindex.adapter.LanguageGetter.Dummy.class
      • runtimegenerated

        boolean runtimegenerated
        Returns whether the class is a runtime generated class. Index adaptation data for runtime generated classes wil not be permanently cached. Default is false.
        Returns:
        true or false
        Default:
        false