Page MenuHomePhabricator

Imported XML not searchable
Closed, DeclinedPublic

Description

Author: stephan.ahonen

Description:
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.


Version: 1.6.x
Severity: normal
OS: Windows 2000
Platform: PC

Details

Reference
bz8555

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:30 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz8555.
bzimport added a subscriber: Unknown Object (MLST).

Use the maintenance script updateSearchIndex.php .

Something like:

php maintenance/updateSearchIndex.php -s 200701091800000000

robchur wrote:

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.

stephan.ahonen wrote:

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.

anon.hui wrote:

(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?

anon.hui wrote:

(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.

anon.hui wrote:

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.

Tested on my MW installation (1.19) works just fine.