public final class TikaIndexerUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addFileContentToSolrItem(SolrItem item,
byte[] fileContent)
Parse and add the content of a file to the solr item.
|
static void |
addFileContentToSolrItem(SolrItem item,
List<byte[]> fileContentList)
Parse and add the content of multiples files to the solr item.
|
static ContentHandler |
parse(InputStream stream)
Identify the type of content and parse the stream
|
static ContentHandler |
parse(InputStream stream,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext parseContext)
Identify the type of content and parse the stream
|
static ContentHandler |
parseHtml(String strContentToIndex)
Parse the xml content
|
static ContentHandler |
parseHtml(String strContentToIndex,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext parseContext)
Parse the xml content
|
public static ContentHandler parseHtml(String strContentToIndex, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext parseContext) throws LuteceSolrException
strContentToIndex - metadata - parseContext - LuteceSolrExceptionpublic static ContentHandler parse(InputStream stream, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext parseContext) throws LuteceSolrException
stream - LuteceSolrExceptionpublic static ContentHandler parse(InputStream stream) throws LuteceSolrException
stream - LuteceSolrExceptionpublic static ContentHandler parseHtml(String strContentToIndex) throws LuteceSolrException
strContentToIndex - LuteceSolrExceptionpublic static void addFileContentToSolrItem(SolrItem item, byte[] fileContent) throws LuteceSolrException
item - fileContent - the content of the fileLuteceSolrExceptionpublic static void addFileContentToSolrItem(SolrItem item, List<byte[]> fileContentList) throws LuteceSolrException
item - fileContentList - the content of the filesLuteceSolrExceptionCopyright © 2023 City of Paris. All rights reserved.