Package org.codelibs.fess.helper
Class DocumentHelper
- java.lang.Object
-
- org.codelibs.fess.helper.DocumentHelper
-
public class DocumentHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringSIMILAR_DOC_HASH_PREFIX
-
Constructor Summary
Constructors Constructor Description DocumentHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringappendLineNumber(String prefix, String content)StringdecodeSimilarDocHash(String hash)StringencodeSimilarDocHash(String hash)StringgetContent(CrawlingConfig crawlingConfig, org.codelibs.fess.crawler.entity.ResponseData responseData, String content, Map<String,Object> dataMap)StringgetDigest(org.codelibs.fess.crawler.entity.ResponseData responseData, String content, Map<String,Object> dataMap, int maxWidth)protected intgetMaxAlphanumTermSize()protected intgetMaxSymbolTermSize()protected int[]getSpaceChars()StringgetTitle(org.codelibs.fess.crawler.entity.ResponseData responseData, String title, Map<String,Object> dataMap)voidinit()protected booleanisDuplicateTermRemoved()Map<String,Object>processRequest(CrawlingConfig crawlingConfig, String crawlingInfoId, String url)
-
-
-
Field Detail
-
SIMILAR_DOC_HASH_PREFIX
protected static final String SIMILAR_DOC_HASH_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@PostConstruct public void init()
-
getTitle
public String getTitle(org.codelibs.fess.crawler.entity.ResponseData responseData, String title, Map<String,Object> dataMap)
-
getContent
public String getContent(CrawlingConfig crawlingConfig, org.codelibs.fess.crawler.entity.ResponseData responseData, String content, Map<String,Object> dataMap)
-
getMaxAlphanumTermSize
protected int getMaxAlphanumTermSize()
-
getMaxSymbolTermSize
protected int getMaxSymbolTermSize()
-
isDuplicateTermRemoved
protected boolean isDuplicateTermRemoved()
-
getSpaceChars
protected int[] getSpaceChars()
-
getDigest
public String getDigest(org.codelibs.fess.crawler.entity.ResponseData responseData, String content, Map<String,Object> dataMap, int maxWidth)
-
processRequest
public Map<String,Object> processRequest(CrawlingConfig crawlingConfig, String crawlingInfoId, String url)
-
-