Posted by ac4lt on August 31, 2007 at 9:26pm
Jump to:
| Project: | Backlinks |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
I may be wrong, but on my drupal 5.2 installation, backlinks was mostly not finding anything. When I looked at what it was doing, in the backlinks_vews_tables function the right side fo the join was the 'fromsid' field. In my search_index table there are over 160,000 rows, but only 914 have a fromsid that is non-zero.
So, I changed the field in that function to 'sid' instead of 'fromsid' and it seemed to start working, at least for preliminary testing.
Honestly, I've not looked at how the search functionality is built so I don't know if perhaps my search_index table is busted (though I did try re-indexing my site; it didn't change).
Is this a backlinks bug or is something odd going on?
Comments
#1
Well, I was wrong about it appearing to work with that change.
I'm a bit stumped, sometimes it works; sometimes it doesn't. Any suggestions for a strategy to debug it would be welcome!
#2
What are the symptoms which lead you to believe backlinks is making the wrong query?
It's normal for a vast majority of search_index rows to have fromsid = 0, these are the indexed words as opposed to indexed links.
as far as debugging, the devel module can show you what queries are being made.
#3