Last modified: 2012-07-24 08:34:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10555, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8555 - Imported XML not searchable
Imported XML not searchable
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.6.x
PC Windows 2000
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-09 19:34 UTC by Stephan Ahonen
Modified: 2012-07-24 08:34 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Stephan Ahonen 2007-01-09 19:34:00 UTC
To move content from an old wiki to a new one, I performed an XML export from
the old wiki and imported it into the new one. Attempting to search for the
pages I had imported turned up nothing, even though they were accessible
normally. Diving into the database I determined that the XML import had put the
content into the page table, but not the searchindex table which the wiki uses
for searches. Going to each page and making a minor edit would put the page into
the index and make it searchable.
Comment 1 Antoine "hashar" Musso (WMF) 2007-01-09 19:41:28 UTC
Use the maintenance script updateSearchIndex.php .

Something like:

php maintenance/updateSearchIndex.php -s 200701091800000000
Comment 2 Rob Church 2007-01-09 20:13:38 UTC
For the import script, users need to run the search index rebuild scripts after
importing. For regular Special:Import, the issue should be fixed in a newer release.
Comment 3 Stephan Ahonen 2007-01-09 20:39:10 UTC
I ran the script a few different ways, even trying -s 20060101000000, but the
pages still aren't being indexed. Is there anywhere I can RTFM on this? The
searchindex table only has three rows in it, Current Events, Main Page, and the
page I touched to make the wiki index it.

Looking in the maintenance dir I found rebuildtextindex.php. THe source looks
like it would do the trick, but it doesn't include the variables containing the
db connection info. Time to do some PHP hacking I guess.
Comment 4 Anon Sricharoenchai 2009-12-09 09:19:07 UTC
(In reply to comment #2)
> For the import script, users need to run the search index rebuild scripts after
> importing. For regular Special:Import, the issue should be fixed in a newer release.

Which revision that it is fixed?
Comment 5 Anon Sricharoenchai 2009-12-11 07:01:57 UTC
(In reply to comment #4)
> (In reply to comment #2)
> > For the import script, users need to run the search index rebuild scripts after
> > importing. For regular Special:Import, the issue should be fixed in a newer release.
> 
> Which revision that it is fixed?
> 

http://svn.wikimedia.org/viewvc/mediawiki/trunk/?view=log&log_pagestart=37700 <-- as I found no revision mention about this bug, I then reopen the bug.
Comment 6 Anon Sricharoenchai 2009-12-11 07:11:13 UTC
http://svn.wikimedia.org/viewvc/mediawiki/trunk/?view=log&pathrev=19034 <-- as I found no revision mention about this bug, I then reopen the bug.
Comment 7 matanya 2012-07-24 08:34:36 UTC
Tested on my MW installation (1.19) works just fine.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links