If I want to make the "Search" find some current or immediate entries I have made
how can I manually do a 'Reindex'
Clicking on the re-index does not give any result.
Is there way to exclude cron and just reindex the site by any means ?

Best regards.

Comments

netbjarne’s picture

- you can visit www.sitename.com/cron.php to trigger cron manually
- you can use the poormanscron module if you have no real cron acces, i do, it works charm.

misty3’s picture

Thanks a lot for the prompt help.
If possible I will like to know if the Search can be made to re-index without any cron
like some of the Search scripts like Sphider. Phpdig etc.

Thanks again.

VM’s picture

no.
clicking the site index button stages the content to be indexed, cron then indexes the content.

why would you not want to use cron ?

misty3’s picture

hi VeryMisunderstood - Thanks a lot.
There is some problem with cron on shared server environment but I do understand that there are alternatives to cron like poormancron etc etc

If just clicking re-index could update search like almost all search scripts why would it would have to be a two-stage procedure ??

Also, as I said scheduled cron will update the stuffs at a scheduled time, what if I want to include the contents which I have just put now ?

Thanks again.

sepeck’s picture

Then manually run /cron.php. cron.php also does various other things on your site so you will need it or poormanscron on a regular basis.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

dman’s picture

No significant search engines actually DO their re-indexing all in one-click from a web console. Search indexing isusually an intensive process that cannot be completed in the space of one http page-load.

What happens when you click 're-index' content (even on those other search engines) is in fact a job is added to a schedule of things to do. It doesn't actually do it that instant.
The process then has to be started, and that's usually best done by a process manager on the server (cron) rather that the state-full browser request.
Tricks can be pulled with automatic page reloads and stuff (I've built a web-daemon that does just that) but what heppens under Drupal is you visit cron.php (using the link provided) and the server processes as many of the queued tasks as it can at one time. Press refresh there to make it attempt the next batch.

the page called cron.php is really do-pending-time-consuming-intensive-jobs.php

search indexing is one of those jobs, so you have to call that page

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

misty3’s picture

Hello,

Thanks a lot . Best regards.

newdru’s picture

Can any anonymous user issue example.com/cron.php or do you have to be admin?

Can an NON-admin authenticated user issue it?

I just tried as anonymous user and it appears to work...

Couldn't this be a bad for cron.php to be publicly available to anyone??

VM’s picture

you can of course change the name of cron.php to whatever you want. security by obscurity.

sepeck’s picture

hasn't been a problem for the vast majority of sites. You can limit who has access by IP Address in the .htaccess file as well.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

dman’s picture

My take on it was that cron.php only does stuff that's queued up to do.
Those tasks that can be done by cron should be safe ones.'

And thinking about a DOS attack, cron.php would be a good target, but when the task list is empty, not much happens. Once all cron tasks are done, it's pretty harmless.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

sepeck’s picture

You can thank them for helping you maintain your site up to date.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

mooffie’s picture

BTW, you can do module_invoke('search', 'cron'); from your code. That's what cron.php does.