private static Hover getIndexingHover(SchemaNode hoverNode, EventPositionContext context) {
        // Taken from:
        // https://docs.vespa.ai/en/reference/schema-reference.html#indexing
        // Too specific to include in documentation fetcher IMO.
        
        // Note: these AST classes belong to the indexinglanguage parser
        if (hoverNode.isASTInstance(ATTRIBUTE.class)) {
            return new Hover(new MarkupContent(MarkupKind.MARKDOWN, 
                "## Attribute\n"
            +   "Attribute is used to make a field available for sorting, grouping, ranking and searching using match mode `word`.\n"
            ));
        } else if (hoverNode.isASTInstance(INDEX.class)) {
            return new Hover(new MarkupContent(MarkupKind.MARKDOWN, 
                "## Index\n"
            +   "Creates a searchable index for the values of this field using match mode `text`. "
            +   "All strings are lower-cased before stored in the index. "
            +   "By default, the index name will be the same as the name of the schema field. "
            +   "Use a fieldset to combine fields in the same set for searching.\n"
            ));
        } else if (hoverNode.isASTInstance(SUMMARY.class)) {
            return new Hover(new MarkupContent(MarkupKind.MARKDOWN, 
                "## Summary\n"
            +   "Includes the value of this field in a summary field. "
            +   "Summary fields of type string are limited to 64 kB. "
            +   "If a larger string is stored, the indexer will issue a warning and truncate the value to 64 kB. "
            +   "Modify summary output by using `summary:` in the field body (e.g. to generate dynamic teasers).\n"
            ));
        }

        return null;
    }
Special handling of field hover to also list which indexing settings are set (index | attribute | summary)
as well as whether the field is inside or outside its document.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/lsp/schema/hover/SchemaHover.java