1 package org.tigris.scarab.util.word; 2 3 48 49 51 import org.tigris.scarab.om.AttributeValue; 53 import org.tigris.scarab.om.Attachment; 54 55 61 public interface SearchIndex 62 { 63 String PARSE_ERROR = 64 "Search engine could not parse the query: "; 65 String INDEX_PATH = "path"; 66 String VALUE_ID = "valid"; 67 String ISSUE_ID = "issid"; 68 String ATTRIBUTE_ID = "attid"; 69 String ATTACHMENT_ID = "atchid"; 70 String ATTACHMENT_TYPE_ID = "atchtypeid"; 71 String TEXT = "text"; 72 Long [] EMPTY_LIST = new Long [0]; 73 74 77 void addQuery(Integer [] attributeIds, String text) 78 throws Exception ; 79 80 83 void addAttachmentQuery(Integer [] ids, String text) 84 throws Exception ; 85 86 90 Long [] getRelatedIssues() 91 throws Exception ; 92 93 100 Long [] getRelatedIssues(boolean mergeResults) 101 throws Exception ; 102 103 106 void index(AttributeValue attributeValue) 107 throws Exception ; 108 109 112 void index(Attachment attachment) 113 throws Exception ; 114 115 118 void updateIndex() 119 throws Exception ; 120 121 125 void clear(); 126 } 127 | Popular Tags |