|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_K_Index
org.compiere.model.MIndex
public class MIndex
Text Index Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_K_Index |
|---|
accessLevel, Model, Table_ID, Table_Name, updatedMS |
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MIndex(Ctx ctx,
int K_Index_ID,
String trxName)
Standard Constructor |
|
MIndex(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static int |
cleanUp(String trxName,
int AD_Client_ID,
int AD_Table_ID,
int Record_ID)
cleanUp |
static MIndex[] |
getResults(String query,
Ctx ctx,
String trxName)
|
static Hashtable<String,String> |
indexString(String thisText)
Index/Keyword a String |
static Hashtable<String,String> |
indexStringBuffer(StringBuffer thisText)
Index/Keyword a StringBuffer |
static void |
reIndex(boolean runCleanUp,
String[] toBeIndexed,
Ctx ctx,
int AD_Client_ID,
int AD_Table_ID,
int Record_ID,
int CM_WebProject_ID,
Timestamp lastUpdated)
reIndex Document |
protected static String |
removeHTML(String textElement)
remove HTML Tags from content... |
static boolean |
runIndex(String thisText,
Ctx ctx,
String trxName,
int tableID,
int recordID,
int CMWebProjectID,
Timestamp sourceUpdated)
runIndex |
void |
setKeyword(String Keyword)
Set Keyword & standardize |
protected static String |
standardizeKeyword(String keyword)
Clean up & standardize Keyword |
| Methods inherited from class org.compiere.model.X_K_Index |
|---|
get_AccessLevel, getAD_Table_ID, getC_DocType_ID, getCM_WebProject_ID, getExcerpt, getK_Index_ID, getKeyNamePair, getKeyword, getR_RequestType_ID, getRecord_ID, getSourceUpdated, initPO, setAD_Table_ID, setC_DocType_ID, setCM_WebProject_ID, setExcerpt, setK_Index_ID, setR_RequestType_ID, setRecord_ID, setSourceUpdated, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MIndex(Ctx ctx,
int K_Index_ID,
String trxName)
ctx - contextK_Index_ID - indextrxName - transaction
public MIndex(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static int cleanUp(String trxName,
int AD_Client_ID,
int AD_Table_ID,
int Record_ID)
trxName - AD_Client_ID - AD_Table_ID - Record_ID -
public void setKeyword(String Keyword)
setKeyword in class X_K_IndexKeyword - protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
public static Hashtable<String,String> indexStringBuffer(StringBuffer thisText)
thisText - The String to convert into Hash
public static Hashtable<String,String> indexString(String thisText)
thisText - The String to convert into Hash
public static boolean runIndex(String thisText,
Ctx ctx,
String trxName,
int tableID,
int recordID,
int CMWebProjectID,
Timestamp sourceUpdated)
thisText - The text to be indexedctx - contexttrxName - Transaction if neededtableID - Table IDrecordID - Record IDCMWebProjectID - Web Project IDsourceUpdated - Update Date of Source
public static void reIndex(boolean runCleanUp,
String[] toBeIndexed,
Ctx ctx,
int AD_Client_ID,
int AD_Table_ID,
int Record_ID,
int CM_WebProject_ID,
Timestamp lastUpdated)
runCleanUp - clean old recordstoBeIndexed - Array of Strings to be indexedctx - ContextAD_Client_ID - ClientAD_Table_ID - TableRecord_ID - RecordCM_WebProject_ID - Web ProjectlastUpdated - Date of last updateprotected static String removeHTML(String textElement)
textElement -
protected static String standardizeKeyword(String keyword)
keyword - keyword
public static MIndex[] getResults(String query,
Ctx ctx,
String trxName)
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||