I like that idea - I've added to the TODO list.
However, one problem that prevents itself is sorting the results. Consider this situation: you have two threads, each one of them has 10 posts. In the first thread, one post mentions "foobar" 2 times, but no other post in the thread has "foobar" in it. The second thread has one occurance of "foobar" in every post. Using the current sort code (but just stripping out duplicates) it results in the thread with two occurances of foobar coming up before the one with 10 occurances. To add a true thread search, it should order the results based on the number of occurances in a thread - not in any given post in the thread. Basically what it comes down to is that to do this, we have to first update the search module to know about grouped records.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
However, one problem that prevents itself is sorting the results. Consider this situation: you have two threads, each one of them has 10 posts. In the first thread, one post mentions "foobar" 2 times, but no other post in the thread has "foobar" in it. The second thread has one occurance of "foobar" in every post. Using the current sort code (but just stripping out duplicates) it results in the thread with two occurances of foobar coming up before the one with 10 occurances. To add a true thread search, it should order the results based on the number of occurances in a thread - not in any given post in the thread. Basically what it comes down to is that to do this, we have to first update the search module to know about grouped records.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com