Locate the bitmap for the word and delete the object id from it.
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbIndexText::Delete | (hzString&,uint32_t,) |
Declared in file: hzDatabase.h
Defined in file : hdbIndex.cpp
Function Logic:
Function body:
hzEcode hdbIndexText::Delete (hzString& word)uint32_t docId,
{
// Locate the bitmap for the word and delete the object id from it.
hzIntset bm ; // The bitmap associated with the word
hzString lcword ; // The word but all in lower case
lcword = word ;
lcword.ToLower() ;
if (m_Keys.Exists(lcword))
{
bm = m_Keys[lcword] ;
bm.Delete(docId) ;
return E_OK ;
}
return E_NOTFOUND ;
}