mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 20:27:43 +03:00
added sorting by site # inlinks/pop to menu for testing
This commit is contained in:
parent
854767e074
commit
c7a5073139
@ -8594,6 +8594,13 @@ bool printSearchFiltersBar ( SafeBuf *sb , HttpRequest *hr ) {
|
||||
s_mi[n].m_icon = NULL;
|
||||
n++;
|
||||
|
||||
s_mi[n].m_menuNum = 1;
|
||||
s_mi[n].m_title = "Sorted by site inlinks";
|
||||
s_mi[n].m_cgi = "sortby=3";
|
||||
s_mi[n].m_icon = NULL;
|
||||
n++;
|
||||
|
||||
|
||||
// languages
|
||||
|
||||
s_mi[n].m_menuNum = 2;
|
||||
|
@ -698,6 +698,11 @@ bool SearchInput::setQueryBuffers ( HttpRequest *hr ) {
|
||||
m_sbuf1.safePrintf("gbrevsortby:gbspiderdate");
|
||||
}
|
||||
|
||||
if ( m_sortBy == 3 ) {
|
||||
if ( m_sbuf1.length() ) m_sbuf1.pushChar(' ');
|
||||
m_sbuf1.safePrintf("gbsortby:gbsitenuminlinks");
|
||||
}
|
||||
|
||||
char *ft = m_filetype;
|
||||
if ( ft && strcasecmp(ft,"any")==0 ) ft = NULL;
|
||||
if ( ft && ! ft[0] ) ft = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user