Closed Bug 467483 Opened 16 years ago Closed 15 years ago

Implement "Solved threads only (for forums):" functionality

Categories

(mozilla.org Graveyard :: Server Operations, task)

task
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Unassigned)

References

()

Details

Attachments

(2 files)

URL: http://support-stage.mozilla.org/tiki-newsearch.php?locale=en&q=quality+feedback+agent&where=f&sa=&filter_lang=1&l=en&en_too=1&lastmodif=0&type=0&answered=1&author=

The "New SUMO Search Engine -- High Level Summary" PDF mentions it, but I thought I'd file it so we don't lose track of it: the "Answered threads only (for forums) :" checkbox/flag doesn't seem to do anything.
Target Milestone: 0.8 → 0.9
Target Milestone: 0.9 → 1.0
How is this related to bug 436878? Is there info on newsearch vs (old, current) search?
New sounds like the future, so I wanna make sure I'm not fixing bug 436878 right before we replace the search :)
Group: websites-security, mozilla-confidential, mozilla-corporation-confidential
Target Milestone: 1.0 → Future
Group: websites-security, mozilla-confidential, mozilla-corporation-confidential
Assignee: nobody → paul.craciunoiu
Adds a new field <status> to the indexed files and makes use of it in tiki-newsearch.php
Attachment #378825 - Flags: review?(laura)
As a result of the previous patch, "status" needs to be added to the sphinx configuration which doesn't seem to be under svn. I did a diff, it's one line of code that goes into:
---
source forums
{
...
---
Attachment #378826 - Flags: review?(laura)
(In reply to comment #0)
> URL:
> http://support-stage.mozilla.org/tiki-newsearch.php?locale=en&q=quality+feedback+agent&where=f&sa=&filter_lang=1&l=en&en_too=1&lastmodif=0&type=0&answered=1&author=
> 
> The "New SUMO Search Engine -- High Level Summary" PDF mentions it, but I
> thought I'd file it so we don't lose track of it: the "Answered threads only
> (for forums) :" checkbox/flag doesn't seem to do anything.

Actually, answered threads are different than solved threads, at least the way newsearch has them currently. Answered means that replies were posted, I believe. Much confusing, I know. We could add a checkbox for solved threads, or replace the "answered" one, but as per bug 493150, we'll be removing the UI anyway.


I should also mention that the first patch defaults searching for solved threads only. To search for all threads you need to add solved_only=0 in the URL. No UI for this yet, needs some input from David :)
Summary: Implement "Answered threads only (for forums):" functionality → Implement "Solved threads only (for forums):" functionality
Target Milestone: Future → 1.1
Comment on attachment 378825 [details] [diff] [review]
Patch for indexer-forums and tiki-newsearch

This acts as outlined in the second half of comment 4. 

To see it in action, the forums need to be reindexed and then the indices need rotated. That's cron'd on stage and prod, though.
Attachment #378825 - Flags: review+
Attachment #378826 - Flags: review+
Comment on attachment 378826 [details] [diff] [review]
Small diff for sphinx.conf

IT will need to add this line to sphinx.conf on both stage and prod.

I assume searchd needs to be restarted to begin using the new conf.
Committed attachment 378825 [details] [diff] [review] in r26070 / r26071.

Assigning to IT. We need two things here:
1) Update sphinx.conf as per comment 3
2) Restart searchd on staging to use the new conf, and also on prod when we push. It'd be good to test it on staging before we push.

Thanks!
Assignee: paul.craciunoiu → server-ops
(In reply to comment #7)
> Assigning to IT. We need two things here:
> 1) Update sphinx.conf as per comment 3
> 2) Restart searchd on staging to use the new conf, and also on prod when we
> push. It'd be good to test it on staging before we push.

Mind filing a separate IT bug just for this, please? Thanks!
Assignee: server-ops → paul.craciunoiu
Marking this fixed, filed bug 494327 for IT.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [waiting on IT before we can verify]
Attachment #378825 - Flags: review?(laura) → review+
Comment on attachment 378826 [details] [diff] [review]
Small diff for sphinx.conf

Do we need sphinxd restarted on stage/prod for this to take effect?
Attachment #378826 - Flags: review?(laura) → review+
(In reply to comment #11)
> (From update of attachment 378826 [details] [diff] [review])
> Do we need sphinxd restarted on stage/prod for this to take effect?
Yes, I assume you just saw bug 494327 :)
Yes, immediately afterwards :)  Commented there
While trying to populate a solved forum thread, I discovered bug 496272; I'd appreciate any and all help in fixing/verifying either/both :-)
Well, cool; my recently solved forum post is now showing up correctly on http://support-stage.mozilla.org/tiki-view_forum_thread.php?locale=en-US&comments_parentId=349768&forumId=1.

A search for it doesn't yield it (http://support-stage.mozilla.org/tiki-newsearch.php?where=f&locale=en-US&q=new+forum+topic&sa=), but hopefully it should once Sphinx reindexes, early this AM.

(However, why then don't all results kicked off from the search box on http://support-stage.mozilla.org/en-US/kb/Support+Website+Forums result in "Solved" threads?  e.g. try "Firefox hangs" -- the results aren't for solved threads.)
I've filed bug 496436 to make sure that /scripts is up to date on stage.

If it isn't, it'll explain why we aren't seeing the expected behavior.
We're getting 'unsolved' results intermingled with 'solved' results. Bug 496436 says /scripts/sphinx is up to date on staging, so it leads me to believe that either the cron for the forums indexer died or the config update didn't take.

Just to reiterate, locally this is WFM so I don't think it's a code issue.
Whiteboard: [waiting on IT before we can verify]
This appears to be only on stage which blocks QA for 1.1.

Server-ops, can you please check into the issues mentioned in comment #17?
Assignee: paul.craciunoiu → server-ops
Severity: normal → critical
Status: RESOLVED → REOPENED
Component: General → Server Operations
Product: support.mozilla.com → mozilla.org
QA Contact: general → mrz
Resolution: FIXED → ---
Target Milestone: 1.1 → ---
Version: unspecified → other
Scripts is at this revision:
URL: http://svn.mozilla.org/projects/sumo/trunk/scripts
Revision: 27240
Last Changed Author: pcraciunoiu@mozilla.com
Last Changed Rev: 26070
Last Changed Date: 2009-05-21 18:44:20 -0700 (Thu, 21 May 2009)

The config change had gone missing, checking production it's still there, but was reverted on stage.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Verified FIXED -- the two results are both solved forum threads, which is what I was expecting; thanks!
Status: RESOLVED → VERIFIED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: