Re: [aseek-users] excerpts found in non-unicode version

From: Fernando Nemec (no email)
Date: Thu Oct 23 2003 - 12:28:13 EDT


Hi all,

To fix that, I changed daemon.cpp, CSearchContext::ProcessCommands:

=~ line 765...

I replace this:

#ifdef UNICODE
 doc.RecodeTo(m_outCharset);
 doc.GetHilightPos(m_outCharset, *m_lightWords);
#endif
 doc.Send(m_socket);

for this:

#ifdef UNICODE
 doc.RecodeTo(m_outCharset);
 doc.GetHilightPos(m_outCharset, *m_lightWords);
#else
// 22/10/2003 21:05 - fnemec
 if (!doc.m_excerpts.size()){
    doc.m_excerpts.push_back(doc.m_text);
 }
#endif
 doc.Send(m_socket);

Thanks,

Nemec

Tuesday, October 21, 2003, 3:56:22 PM, you wrote:

> Hi everyone,

> I compiled non-unicode version of aspseek 1.2.10 on a RedHat 7.2,
> using mysql 3.23.39.

> When I turn off excerpts feature, s.cgi doesnt return any excerpt.

> Manual says that the document's first couple of lines will be return.

> Is this feature turned off in non-unicode version?

> Thanks,

> Nemec

-- 
[]s
Fernando Nemec
http://www.folha.com.br/







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD