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

Mailing List Archive: Wikipedia: Mediawiki

Section links and redirects in search results

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


askteves at gmail

Jul 30, 2012, 12:53 PM

Post #1 of 2 (209 views)
Permalink
Section links and redirects in search results

Hello,

I have been all over the forums + mediawiki support desk, IRC, etc. and
so far no-one seems to know the answer to this.

I am wondering how to get Wikipedia-like search results on my Wiki.

I am running the following:

MediaWiki 1.19.1
PHP 5.4.5 (apache2handler)
MySQL 5.5.25a-log
Lucene 2.1
MWSearch + Lucene-Search, both latest

Everything works great except for the following:

I would like to have links to the section / redirect come up in my
results as well, similar to that of Wikipedia / MediaWiki.org.

For example, when I search Wikipedia for the term 'Test Concept', it
gives results like this:

/The page "Test concept
<http://en.wikipedia.org/w/index.php?title=Test_concept&action=edit&redlink=1>"
does not exist. You can ask for it to be created
<http://en.wikipedia.org/wiki/Wikipedia:Articles_for_creation>, but
consider checking the search results below to see whether the topic is
already covered./
For search help, please visit Help:Searching
<http://en.wikipedia.org/wiki/Help:Searching>.

*
Concept testing <http://en.wikipedia.org/wiki/Concept_testing>
(redirect from Concept Test
<http://en.wikipedia.org/wiki/Concept_Test>)
Concept testing is the process of using quantitative methods and
qualitative methods to evaluate consumer response to a product idea
prior *...*
6 KB (819 words) - 13:29, 22 May 2012
*
Concept inventory <http://en.wikipedia.org/wiki/Concept_inventory>
A concept inventory is a criterion-referenced test designed to
evaluate whether a student has an accurate working knowledge of a
specific *...*
14 KB (1,982 words) - 18:54, 5 July 2012
*
Prototype <http://en.wikipedia.org/wiki/Prototype>
A prototype is an early sample or model built to test a concept or
process or to act as a thing to be replicated or learned from. *...*
22 KB (3,188 words) - 00:23, 15 July 2012
*
Stalking horse <http://en.wikipedia.org/wiki/Stalking_horse>
(section Related concepts
<http://en.wikipedia.org/wiki/Stalking_horse#Related_concepts>)
A stalking horse is a figure that tests a concept with someone or
mounts a challenge against someone on behalf of an anonymous third
party *...*
16 KB (2,571 words) - 15:17, 10 July 2012



But my own wiki only gives results like this:

*
Concept testing <http://en.wikipedia.org/wiki/Concept_testing>

== Concept Testing ==
Concept testing is the process of using quantitative methods
and qualitative methods to evaluate consumer response to a
product idea prior *...
*


How can I enable this feature so that == headings == are converted to
(section Headings<http://en.wikipedia.org/wiki/Concept_Test>) and
redirects show up as (Redirect Concept Test
<http://en.wikipedia.org/wiki/Concept_Test>) etc.

I hope this is clear. Thank you so much for any help you can provide!




_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


askteves at gmail

Jul 30, 2012, 10:13 PM

Post #2 of 2 (208 views)
Permalink
Re: Section links and redirects in search results [In reply to]

UPDATE: Answered by Rainman

Hi Joel,

Just to clarify, the search results include section titles when the
section title itself matches the search term (and not when the text in
the section matches the search term). This should happen automatically
as long as you have the 2.1 features enabled in MWSearch (i.e.
$wgLuceneSearchVersion = 2.1). The Lucene-search backend parses section
titles and collects them into a special fields. This assumes that the
titles were generated using the standard syntax (e.g. == title ==). If
the section titles are generate via templates or some other extension,
it won't work.

Hope this helps,
Cheers, Robert

On 30/07/12 23:21, Joel DeTeves wrote:
Good day Robert,

My name is Joel.

I've been poking around the forums, mediawiki.org + IRC channels and
haven't been able to find an answer to this question - however, it's
been said by many people I've talked to that you are the great mind
behind many of the critical search functions being used in Wikimedia
sites today (including Lucene-Search extension) and you might know the
answer.

Basically,

I am trying to get search results to display links to the section of the
article the search result was found in, rather than just a link the
article itself - the result I am looking for is much like the way
Wikipedia + Wikimedia search is working now.

I am currently running MediaWiki 1.19.1, PHP 5.4.4, MySQL 5.5.25, on an
Arch Linux / Apache 2 backend.

I have Lucene-Search 2.1 up and running, and according to some folks
I've talked to, it has capability along with MWSearch to do what I'm
asking.

Are you able to tell me how this is done?

Let me know if you need clarification, and thank you so much for your
time - PS, I am a great fan of your work... though I'm not a developer,
and I can't fathom how you are able to do it. If you have a donation
page set up, I would gladly toss in a small contribution as a token of
my gratitude.


Cheers,
-Joel DeTeves-


On 30/07/2012 12:53 PM, Joel DeTeves wrote:
> Hello,
>
> I have been all over the forums + mediawiki support desk, IRC, etc.
> and so far no-one seems to know the answer to this.
>
> I am wondering how to get Wikipedia-like search results on my Wiki.
>
> I am running the following:
>
> MediaWiki 1.19.1
> PHP 5.4.5 (apache2handler)
> MySQL 5.5.25a-log
> Lucene 2.1
> MWSearch + Lucene-Search, both latest
>
> Everything works great except for the following:
>
> I would like to have links to the section / redirect come up in my
> results as well, similar to that of Wikipedia / MediaWiki.org.
>
> For example, when I search Wikipedia for the term 'Test Concept', it
> gives results like this:
>
> /The page "Test concept
> <http://en.wikipedia.org/w/index.php?title=Test_concept&action=edit&redlink=1>"
> does not exist. You can ask for it to be created
> <http://en.wikipedia.org/wiki/Wikipedia:Articles_for_creation>, but
> consider checking the search results below to see whether the topic is
> already covered./
> For search help, please visit Help:Searching
> <http://en.wikipedia.org/wiki/Help:Searching>.
>
> *
> Concept testing <http://en.wikipedia.org/wiki/Concept_testing>
> (redirect from Concept Test
> <http://en.wikipedia.org/wiki/Concept_Test>)
> Concept testing is the process of using quantitative methods and
> qualitative methods to evaluate consumer response to a product
> idea prior *...*
> 6 KB (819 words) - 13:29, 22 May 2012
> *
> Concept inventory <http://en.wikipedia.org/wiki/Concept_inventory>
> A concept inventory is a criterion-referenced test designed to
> evaluate whether a student has an accurate working knowledge of a
> specific *...*
> 14 KB (1,982 words) - 18:54, 5 July 2012
> *
> Prototype <http://en.wikipedia.org/wiki/Prototype>
> A prototype is an early sample or model built to test a concept or
> process or to act as a thing to be replicated or learned from. *...*
> 22 KB (3,188 words) - 00:23, 15 July 2012
> *
> Stalking horse <http://en.wikipedia.org/wiki/Stalking_horse>
> (section Related concepts
> <http://en.wikipedia.org/wiki/Stalking_horse#Related_concepts>)
> A stalking horse is a figure that tests a concept with someone or
> mounts a challenge against someone on behalf of an anonymous third
> party *...*
> 16 KB (2,571 words) - 15:17, 10 July 2012
>
>
>
> But my own wiki only gives results like this:
>
> *
> Concept testing <http://en.wikipedia.org/wiki/Concept_testing>
>
> == Concept Testing ==
> Concept testing is the process of using quantitative methods
> and qualitative methods to evaluate consumer response to a
> product idea prior *...
> *
>
>
> How can I enable this feature so that == headings == are converted to
> (section Headings<http://en.wikipedia.org/wiki/Concept_Test>) and
> redirects show up as (Redirect Concept Test
> <http://en.wikipedia.org/wiki/Concept_Test>) etc.
>
> I hope this is clear. Thank you so much for any help you can provide!
>
>
>
>

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.