Closed Bug 528607 Opened 16 years ago Closed 16 years ago

Ensure search v3 accounts for {REDIRECT} articles

Categories

(support.mozilla.org :: Search, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: paulc, Assigned: jsocol)

References

()

Details

(Whiteboard: sumo_only)

Attachments

(1 file)

We have some articles that are simply redirects of others. These shouldn't show up in the search results. We previously did this in the XML indexer, but we won't be using that anymore.
Summary: Ensure new search accounts for {REDIRECT} articles → Ensure search v3 accounts for {REDIRECT} articles
I was thinking, worst case, we can do a filtering by page id for existing redirects. That wouldn't add much to indexing time. Chris: why do we need article redirects? could you explain more about that? could we do them in htaccess instead?
Two reasons: * To preserve old URLs of renamed articles. * To provide alternative names to articles, where we think it is needed. The articles that have text before the redirect are supposed to show up in search results. See bug 489046.
If we just add AND content NOT LIKE '{REDIRECT(%' to the WHERE clause for wiki_pages in sphinx.conf, we should be good, right?
That sounds good to me. I hope that won't triple indexing time :)
To clarify, the two reasons Ilias listed are also two very distinct use cases: * To preserve old URLs of renamed articles -- these redirects shouldn't be included in search results * To provide alternative names to articles where we think it is needed -- these redirects SHOULD be included in search results Typically they're distinguished by being _just_ the {REDIRECT} code in the formst, and also having an actual article summary/description paragraph in the latter. Chris: can you please clarify how we distinguish the two so we don't end up with a situation where our alternate article names are ignored by the search engine, as that would defeat the purpose of having them?
I talked to Chris and he gave me a couple example articles. It shouldn't be a problem.
Assignee: paulc → james
Priority: -- → P2
Priority: P2 → P1
Priority: P1 → P2
This just tells the indexer that if the page content starts with "{REDIRECT" to ignore the whole page. I tested this by searching for "Shockwave".
Attachment #413229 - Flags: review?(paulc)
Comment on attachment 413229 [details] [diff] [review] tell the indexer to ignore pure {REDIRECT()} articles Looks good, no more "Shockwave" in results for me either.
Attachment #413229 - Flags: review?(paulc) → review+
r56386. Should be affecting the results on stage by now.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
URL: https://sumo-forumux.stage.mozilla.co...
Status: RESOLVED → VERIFIED
Blocks: 532156
Whiteboard: sumo_only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: