Class SolrHtmlParserUtil

java.lang.Object
fr.paris.lutece.plugins.search.solr.util.SolrHtmlParserUtil

public final class SolrHtmlParserUtil extends Object
Util class for parsing HTML content.
  • Method Details

    • parseHtml

      public static String parseHtml(String strContentToIndex)
      Parse the xml content
      Parameters:
      strContentToIndex -
      Returns:
      the parsed content
      Throws:
      LuteceSolrException
    • parse

      public static String parse(InputStream stream) throws LuteceSolrException
      Identify the type of content and parse the stream
      Parameters:
      stream -
      Returns:
      the string
      Throws:
      LuteceSolrException
    • addFileContentToSolrItem

      public static void addFileContentToSolrItem(SolrItem item, byte[] fileContent)
      Parse and add the content of a file to the solr item.
      Parameters:
      item -
      fileContent - the content of the file
      Throws:
      LuteceSolrException
    • addFileContentToSolrItem

      public static void addFileContentToSolrItem(SolrItem item, List<byte[]> fileContentList)
      Parse and add the content of multiples files to the solr item.
      Parameters:
      item -
      fileContentList - the content of the files
      Throws:
      LuteceSolrException