Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech
Bug/change request for rebuildtextindex.php
 

Index | Next | Previous | View Flat


alexp at exscien

Aug 22, 2008, 8:18 AM


Views: 467
Permalink
Bug/change request for rebuildtextindex.php

Hi,

Every release of MW since 1.10 I've been making a tweak to the
rebuildtextindex.php to replace line 60 with the following code:

if($s->page_namespace != NS_MAIN)
{
global $wgContLang;
$title = $wgContLang->getNsText( $s->page_namespace ) . ':'
. $s->page_title;
}
else
{
$title = $s->page_title;
}
$u = new SearchUpdate( $s->page_id, $title, $revtext );

I have no idea how the best way to get this into the main code base is, but
I'm pretty sure as it stands its wrong in everyone's eyes - since the
namespace information is currently lost. Ideally SearchUpdate would be
refactored to take a namespace parameter, but this at least allows it to be
retrieved intact. I found this problem when adding an extension to index the
other namespaces. Or should I be using something else to rebuild the text
search?

Kind regards,

Alex

--
Alex Powell

Exscien Training Ltd
Tel: +44 (0) 1865 876562
Mob: +44 (0) 7717 765210

skype: alexp700
mailto:alexp[at]exscien.com
http://www.exscien.com

Registered in England and Wales 05927635, Unit 10 Wheatley Business Centre,
Old London Road, Wheatley, OX33 1XW, England
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Subject User Time
Bug/change request for rebuildtextindex.php alexp at exscien Aug 22, 2008, 8:18 AM
    Re: Bug/change request for rebuildtextindex.php alexp at exscien Aug 22, 2008, 8:22 AM
    Re: Bug/change request for rebuildtextindex.php brion at wikimedia Aug 22, 2008, 9:29 AM
        Re: Bug/change request for rebuildtextindex.php alexp at exscien Aug 23, 2008, 12:01 PM
    Re: Bug/change request for rebuildtextindex.php brion at wikimedia Aug 22, 2008, 9:35 AM
        Re: Bug/change request for rebuildtextindex.php alexp at exscien Aug 23, 2008, 11:46 AM
    Re: Bug/change request for rebuildtextindex.php alexp at exscien Aug 24, 2008, 8:54 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.