Class SolrHtmlParserUtil
java.lang.Object
fr.paris.lutece.plugins.search.solr.util.SolrHtmlParserUtil
Util class for parsing HTML content.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFileContentToSolrItem(SolrItem item, byte[] fileContent) Parse and add the content of a file to the solr item.static voidaddFileContentToSolrItem(SolrItem item, List<byte[]> fileContentList) Parse and add the content of multiples files to the solr item.static Stringparse(InputStream stream) Identify the type of content and parse the streamstatic StringParse the xml content
-
Method Details
-
parseHtml
Parse the xml content- Parameters:
strContentToIndex-- Returns:
- the parsed content
- Throws:
LuteceSolrException
-
parse
Identify the type of content and parse the stream- Parameters:
stream-- Returns:
- the string
- Throws:
LuteceSolrException
-
addFileContentToSolrItem
Parse and add the content of a file to the solr item.- Parameters:
item-fileContent- the content of the file- Throws:
LuteceSolrException
-
addFileContentToSolrItem
Parse and add the content of multiples files to the solr item.- Parameters:
item-fileContentList- the content of the files- Throws:
LuteceSolrException
-