nesdev.com
http://forums.nesdev.com/

Ignored words when searching
http://forums.nesdev.com/viewtopic.php?f=13&t=9410
Page 1 of 2

Author:  tokumaru [ Tue Oct 16, 2012 8:31 am ]
Post subject:  Ignored words when searching

Why are certain common words ignored on searches? Many times since the migration of the forums I have had trouble searching for threads/posts just because certain words are filtered out. Even though the words are common, they can be used with other (common or not) words to form not-so-common combinations. For example, I can't search for anything related to sprites (sprite cycling, sprite corruption, sprite animation, etc.) because the word "sprite" is ignored.

Because of this, I often have to try hard and remember other things (not necessarily related to the information I'm after) that might have been mentioned in a thread I'm looking for just so I can find it. I can only do this because I was around when the thread was made and have read it before, but what about new users? They can't do that, they rely on a search mechanism that doesn't ignore words that can form unique combinations with other words.

Can we reconsider some of these filtered words?

Author:  tepples [ Tue Oct 16, 2012 8:55 am ]
Post subject:  Re: Ignored words when searching

Does Google sprite site:forums.nesdev.com also fail?

Author:  tokumaru [ Tue Oct 16, 2012 9:33 am ]
Post subject:  Re: Ignored words when searching

I haven't tried, but it's kinda lame that we need an external tool for searches when our own software is able to do it. This solution is also very counter-intuitive.

Author:  blargg [ Tue Oct 16, 2012 11:29 am ]
Post subject:  Re: Ignored words when searching

Oh the irony. I search for "hit" and I get 1688 matches. I search for "sprite hit" (with search for all terms checked) and get the same number of matches. The system's explanation is that it helpfully omitted "sprite" because it's such a common word and would therefore cause excessive matches. Except that as you say, this is a narrowing search, and thus it would reduce the number of matches. Total retardation.

Author:  tokumaru [ Tue Oct 16, 2012 12:05 pm ]
Post subject:  Re: Ignored words when searching

Exactly. And your example is perfect: it's practically impossible to search for info on sprite hits.

Author:  koitsu [ Tue Oct 16, 2012 4:02 pm ]
Post subject:  Re: Ignored words when searching

I'm not sure what can be done about this, honestly. Expecting a piece of forum software to have the same logic and "smarts" as a major search engine is unreasonable, though I do understand where you're coming from (re: usability).

We're limited to what you see in the below screenshot. There's absolutely nothing else we can adjust/change. That's just how phpBB is.

Attachments:
search.png
search.png [ 110.22 KiB | Viewed 4452 times ]

Author:  tepples [ Tue Oct 16, 2012 4:07 pm ]
Post subject:  Re: Ignored words when searching

Near the bottom is a "Common word threshold". Perhaps a certain soft drink made by Coca-Cola is in the top 5 percent, and the value needs to be lowered and the index rebuilt.

Author:  thefox [ Tue Oct 16, 2012 4:11 pm ]
Post subject:  Re: Ignored words when searching

tepples wrote:
Near the bottom is a "Common word threshold". Perhaps a certain soft drink made by Coca-Cola is in the top 5 percent, and the value needs to be lowered and the index rebuilt.

Or set the value to 0 (may or may not need rebuilding of the index), and see if there's really a performance hit big enough to warrant changing it back to value greater than 0.

Author:  koitsu [ Tue Oct 16, 2012 6:13 pm ]
Post subject:  Re: Ignored words when searching

Tepples et all are welcome to change this if they want. I have no idea of what the repercussions performance-wise or database-wise (e.g. craploads of rows resulting in a gigantic table, SELECT queries taking a long time (no idea if they use INDEXes), etc...).

Author:  tokumaru [ Tue Oct 16, 2012 6:59 pm ]
Post subject:  Re: Ignored words when searching

Ah, so the common words are automatically detected by the software... This is kinda stupid, some of these common words are crucial to make searches meaningful.

Author:  rainwarrior [ Tue Oct 16, 2012 9:48 pm ]
Post subject:  Re: Ignored words when searching

sprite sprite sprite sprite sprite!

Now you'll never find them! MUA HA HA HA HA HA! :twisted:

Author:  picccca [ Wed Oct 17, 2012 8:08 am ]
Post subject:  Re: Ignored words when searching

Quote:
No posts were found because the word ciclone is not contained in any post.
No posts were found because the word 10nes is not contained in any post.
No posts were found because the word 3195 is not contained in any post.

This can't be right either.

Author:  tepples [ Wed Oct 17, 2012 8:25 am ]
Post subject:  Re: Ignored words when searching

I cleared the index, set the stopword threshold to 1%, and rebuilt the index. It may take a few hours, or it may have been killed by a max_execution_time restriction on the web server. WhoaMan might be the best one to troubleshoot this.

Author:  thefox [ Wed Oct 17, 2012 9:10 am ]
Post subject:  Re: Ignored words when searching

tepples wrote:
I cleared the index, set the stopword threshold to 1%, and rebuilt the index. It may take a few hours, or it may have been killed by a max_execution_time restriction on the web server. WhoaMan might be the best one to troubleshoot this.

Hmm, shouldn't it actually be set to a higher value? If I understand the wording right, the meaning is "if the word is contained in over 5% of all posts, it will be regarded as common (and ignored)", so 1% would actually regard more words as common.

Author:  tepples [ Wed Oct 17, 2012 9:46 am ]
Post subject:  Re: Ignored words when searching

My bad, I thought it was the top 5 percent of words, not words in over 5 percent of posts. I was confused by "Set to zero to disable". I'll rebuild the table again.

Page 1 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/