Search the web
Sign In
New User? Sign Up
dataparksearch · DataparkSearch Engine Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Issue 11 in dataparksearch: Multi-dbaddr is broken in 4.52 onwards   Message List  
Reply | Forward Message #2441 of 2444 |
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 11 by amitsharadjoshi: Multi-dbaddr is broken in 4.52 onwards
http://code.google.com/p/dataparksearch/issues/detail?id=11

Setup dpsearch with multiple indices each with its own searchd daemon.
Setup the search.htm to search across all the searchd daemons
If there are duplicate articles between the indices you will sometimes get
results with no document information depending on the order of the searchd
daemons specified in the search.htm.

The problem lies around line 348 in the file src/searchd.c #ifdef
DpsDocFromTextBuf(&Res->Doc[ndocs], tok);
WITH_MULTIDBADDR
{
char *dbstr =
DpsVarListFindStr(&Res->Doc[ndocs].Sections, "dbnum", NULL);
if (dbstr != NULL) {
Res->Doc[ndocs].dbnum =
DPS_ATOI(dbstr);
}
}
#endif

Assigning Res->Doc[ndocs].dbnum causes the db number to be set incorrectly
and the document is looked for in the wrong index. Previous versions did
not have that code and also the assignment
DpsDocFromTextBuf(&Res->Doc[ndocs], tok); was after the #endif.

Commenting out the whole if(dbstr) ... clause and moving the assignment to
the old position seems to fix the problems.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



Thu May 14, 2009 5:19 pm

codesite-noreply@...
Send Email Send Email

Forward
Message #2441 of 2444 |
Expand Messages Author Sort by Date

Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 11 by amitsharadjoshi: Multi-dbaddr is broken in 4.52 onwards ...
codesite-noreply@...
Send Email
May 14, 2009
5:19 pm

Updates: Status: Started Owner: dp.maxime Comment #1 on issue 11 by dp.maxime: Multi-dbaddr is broken in 4.52 onwards ...
codesite-noreply@...
Send Email
May 17, 2009
12:51 pm
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help