Fernando Nemec
Fri, 24 Oct 2003 09:30:32 -0700
-- []s Fernando Nemec [EMAIL PROTECTED] http://www.folha.com.br/
23/10/2003 15:14
aspseek non-unicode version didn't return any excerpt if query is found only in
document's title. The correct behavior is show the first couple of lines, to gave an
idea of what the document is about.
--- daemon.cpp Fri Jul 19 12:02:10 2002
+++ /usr/src/aspseek-1.2.10-patched/src/daemon.cpp Thu Oct 23 14:57:30 2003
@@ -763,6 +763,11 @@
#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);
}
23/10/2003 15:12
Fixed crash when aspseek non-unicode version receives a word preceded by minus.
--- scanner.cpp Tue Jun 18 08:31:18 2002
+++ /usr/src/aspseek-1.2.10-patched/src/scanner.cpp Thu Oct 23 14:59:26 2003
@@ -316,7 +316,12 @@
m_hereChar = 0;
#endif
m_token = NULL;
+// 22/10/2003 22:45 - fnemec
+#ifdef UNICODE
for (int i = 0; i <= maxExtended; i++)
+#else
+ for (int i = 0; i < maxExtended; i++)
+#endif
{
xFuncs[funcs[i].type] = funcs[i].func;
}