forked from Mirrors/privacore-open-source-search-engine
Remove unused printTermList
This commit is contained in:
29
Posdb.cpp
29
Posdb.cpp
@ -350,35 +350,6 @@ const char *getHashGroupString ( unsigned char hg ) {
|
||||
return "unknown!";
|
||||
}
|
||||
|
||||
|
||||
|
||||
void printTermList ( int32_t i, const char *list, int32_t listSize ) {
|
||||
// first key is 12 bytes
|
||||
bool firstKey = true;
|
||||
const char *px = list;//->m_list;
|
||||
const char *pxend = px + listSize;//list->m_listSize;
|
||||
for ( ; px < pxend ; ) {
|
||||
int32_t wp = Posdb::getWordPos(px);
|
||||
int32_t dr = Posdb::getDensityRank(px);
|
||||
int32_t hg = Posdb::getHashGroup(px);
|
||||
int32_t syn = Posdb::getIsSynonym(px);
|
||||
log("seo: qterm#%" PRId32" pos=%" PRId32" dr=%" PRId32" hg=%s syn=%" PRId32
|
||||
, i
|
||||
, wp
|
||||
, dr
|
||||
, getHashGroupString(hg)
|
||||
, syn
|
||||
);
|
||||
if ( firstKey && Posdb::getKeySize(px)!=12)
|
||||
gbshutdownLogicError();
|
||||
else if ( ! firstKey&& Posdb::getKeySize(px)!=6)
|
||||
gbshutdownLogicError();
|
||||
if ( firstKey ) px += 12;
|
||||
else px += 6;
|
||||
firstKey = false;
|
||||
}
|
||||
}
|
||||
|
||||
void Posdb::printKey(const char *k) {
|
||||
logf(LOG_TRACE, "k=%s "
|
||||
"tid=%015" PRIu64" "
|
||||
|
4
Posdb.h
4
Posdb.h
@ -91,10 +91,6 @@ const char *getHashGroupString ( unsigned char hg );
|
||||
|
||||
typedef key144_t posdbkey_t;
|
||||
|
||||
|
||||
void printTermList ( int32_t i, const char *list, int32_t listSize ) ;
|
||||
|
||||
|
||||
class Posdb {
|
||||
|
||||
public:
|
||||
|
@ -14,8 +14,6 @@ float getHashGroupWeight ( unsigned char hg );
|
||||
#define SITERANKDIVISOR 3.0
|
||||
#define SITERANKMULTIPLIER 0.33333333
|
||||
|
||||
void printTermList ( int32_t i, const char *list, int32_t listSize ) ;
|
||||
|
||||
// if query is 'the tigers' we weight bigram "the tigers" x 1.20 because
|
||||
// its in wikipedia.
|
||||
// up this to 1.40 for 'the time machine' query
|
||||
|
Reference in New Issue
Block a user