1 31 32 package org.opencms.search.documents; 33 34 import org.opencms.file.CmsObject; 35 import org.opencms.main.CmsException; 36 import org.opencms.search.A_CmsIndexResource; 37 38 import java.util.List ; 39 40 import org.apache.lucene.document.Document; 41 42 52 public interface I_CmsDocumentFactory extends I_CmsSearchExtractor { 53 54 55 String DOC_CATEGORY = "category"; 56 57 58 String DOC_CONTENT = "content"; 59 60 61 String DOC_DATE_CREATED = "created"; 62 63 64 String DOC_DATE_LASTMODIFIED = "lastmodified"; 65 66 67 String DOC_DESCRIPTION = "description"; 68 69 70 String DOC_KEYWORDS = "keywords"; 71 72 73 String DOC_META = "meta"; 74 75 76 String DOC_PATH = "path"; 77 78 79 String DOC_PRIORITY = "priority"; 80 81 82 String DOC_ROOT = "root"; 83 84 85 String DOC_TITLE_INDEXED = "title"; 86 87 88 String DOC_TITLE_KEY = "title-key"; 89 90 91 String DOC_TYPE = "type"; 92 93 94 String SEARCH_PRIORITY_HIGH_VALUE = "high"; 95 96 97 String SEARCH_PRIORITY_LOW_VALUE = "low"; 98 99 100 String SEARCH_PRIORITY_MAX_VALUE = "max"; 101 102 103 String SEARCH_PRIORITY_NORMAL_VALUE = "normal"; 104 105 112 String getDocumentKey(String resourceType) throws CmsException; 113 114 126 List getDocumentKeys(List resourceTypes, List mimeTypes) throws CmsException; 127 128 133 String getName(); 134 135 144 Document newInstance(CmsObject cms, A_CmsIndexResource resource, String language) throws CmsException; 145 }
| Popular Tags
|