My Drupal site depends on search because much of the content is for members only and thus not reachable by outsider spiders.

When I first installed search it worked great. But recent content has failed to show up. Naturally I checked settings > cron. Nope, it's running. THen settings > search. Again, affirmative messages: "100% of site is indexed." Great. So what's happening?

I wonder if it has something to do with tac_lite being installed. I checked settings > access control and all authenticated users do have the access to search content (otherwise, why would they get the search box?).

Like I say, searches bring up results. It's just that the results come entirely from older content, pages as well as stories. Most of the new content are stories and restricted based on your user role. Since I'm currently logged in as the site administrator, I of all people should be able to view all content. So if you're thinking, well, he doesn't have sufficient privileges to view his new content as search results, sorry, that doesn't explain it either.

Any other ideas? We really need this to be working.

Comments

tvbarn’s picture

I've spent another half hour investigating various ways this could be broken, to no avail. Anyone?

laura s’s picture

How much content do you have? What if you re-index the site? (You can manually ping cron.php to speed up the process.) Any problems then?

Laura
_____ ____ ___ __ _ _
design, snap, blog

_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet

tvbarn’s picture

Searches are working. It's not cron. It's this:

Search is only giving me results of content that user #1 created. It's even finding stuff from today that user #1 created.

Here's the problem: user #229 is the one entering the stories I'm wanting to search!

I want search results that includes ALL content available to me, whether I (user #1) authored it or not.

Very odd, because when you browse for content (say by views I've created), user #229's content shows up alongside mine.

And yes, I have privileges to see user #229's content. As I said, views will show all available content. Search won't.

gezzcc’s picture

Did you turn on persisten connections? We see the same behaviour and found a fix. Please see this link for fix: http://drupal.org/node/116623

Thanks, -Gezz

brunodbo’s picture

I'm experiencing the same problem (search not finding newer content). Cron is up and running, 100% of the site in indexed. I'll investigate further.

Do you have any news / progress on this?

era1’s picture

I seem to be having the same problem... after adding a node with a string of random characters, the search settings will still claim that 100% of the site is indexed even though there's no way it can be since cron.php hasn't been run since the addition of the node. After manually running cron, a search on the string turns up no results.

The thing is that reindexing from scratch seems to catch the newly added page, but having to manually reindex every time content is added seems excessive, and may really just be shifting the problem around. For example, I note some other folks have had problems with the search module only indexing the number of pages set in the index throttling setting in total, not per cron run.

Thus, say I'm above 500 pages of nodes, add a new node, the new node doesn't get indexed, I reindex, the site adds the new page, but drops an eariler one that used to be indexed to compensate.

Am I barking up the wrong tree here? Anyone else have more info on symptoms and solutions and/or an explanation on why the search settings page claims everything is 100% indexed immediately after several new content pieces have been added? I assume that while the actual indexing isn't realtime since its tied to cron that the % indicator under search settings should know immediately when there's a new node that needs to be indexed.

Thanks.

cybe’s picture

I believe I've had the same problem over the years. Maybe it's some database update gone wrong at some point? (4 years - drupal4.4-5.x)

I thought it was working flawlessly but just noticed it again whilst looking for some content, and noticed it only found one document even though it should find over 10.

I just re-indexed the site and even though it says 100% it felt a bit too quick. I also noticed that when I clicked re-index and it started, it really hadn't emptied the search cache, and the old index was there. I also noticed I had some mixed collations and changed all tables to UTF-8. After this I manually emptied the search tables and re-indexed... Still felt a bit too quick up to 100% and same poor index, not finding everything.

I would have tried deleting the search tables and re-creating them, in case there's something wrong with their format but nowadays Drupal doesn't seem to come with the empty mysql file since install.php takes care of creating them?

moebis’s picture

I've been having the same issues as everyone is stating here since 5.0, haven't found a fix. I have to manually rerun the index every couple of weeks. No solution yet? I've been poking around and no one seems to know how to fix this.