src/main/java/de/hofuniversity/iisys/elasticsearch/relay/postprocess/HtmlPostProcessor.java
// hit when the node is first seen
hit when the node is first seen
hit when the node is first seen
public void head(Node node, int depth) {
            String name = node.nodeName();
            if (node instanceof TextNode)
                append(((TextNode) node).text()); 
            else if (name.equals("li"))
                append("\n * ");
            else if (name.equals("dt"))
                append("  ");
            else if (StringUtil.in(name, "p", "h1", "h2", "h3", "h4", "h5", "tr"))
                append("\n");
        }
public void head ( Node node , int depth ) { String name = node . nodeName ( ) ; if ( node instanceof TextNode ) append ( ( ( TextNode ) node ) . text ( ) ) ; else if ( name . equals ( "li" ) ) append ( "\n * " ) ; else if ( name . equals ( "dt" ) ) append ( "  " ) ; else if ( StringUtil . in ( name , "p" , "h1" , "h2" , "h3" , "h4" , "h5" , "tr" ) ) append ( "\n" ) ; }
hit when the node is first seen
hit when the node is first seen
// TextNodes carry all user-readable text in the DOM.