Page 1 of 3 123 LastLast
Results 1 to 15 of 31

Thread: Search results sorting

  1. #1
    Old school, like an old fool. Flying Mullet's Avatar
    Join Date
    Apr 2003
    Location
    Napping in a peach tree.
    Posts
    19,185
    Articles
    6
    Blog Entries
    7
    Contributions
    • Former Administrator
    • Former Cid's Knight
    • Former Senior Site Staff

    Default Search results sorting

    Would it be difficult to make search results sortable? i.e. you can click on the "Thread", "Thread Starter", "Forum", etc... header to sort your results by that column to make searching a little bit easier?
    Figaro Castle

  2. #2
    Banished Ace Recognized Member Agent Proto's Avatar
    Join Date
    Aug 2000
    Location
    Root Beer Forum
    Posts
    15,629
    Articles
    111
    Blog Entries
    70
    Contributions
    • Former Cid's Knight

    Default

    I don't think it can work that way. Besides, the current search system works just fine! Why make it even more complex than it is already?

    Apparently, I have been declared banished.

  3. #3
    Posts Occur in Real Time edczxcvbnm's Avatar
    Join Date
    Aug 2000
    Location
    The World
    Posts
    7,920

    Default

    I just want to see restrictions removed on what you search for having to be longer than 3 letters. Sometimes the word or thing is just that short damn it.

  4. #4
    Old school, like an old fool. Flying Mullet's Avatar
    Join Date
    Apr 2003
    Location
    Napping in a peach tree.
    Posts
    19,185
    Articles
    6
    Blog Entries
    7
    Contributions
    • Former Administrator
    • Former Cid's Knight
    • Former Senior Site Staff

    Default

    It shouldn't be too hard. You just have to add an "Order By" clause to the end of the sql string and then search again.
    Figaro Castle

  5. #5
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    It wouldn't be too hard to do that, no.

    ed: reducing the size of searchable words increases the size of the search index.

  6. #6
    Posts Occur in Real Time edczxcvbnm's Avatar
    Join Date
    Aug 2000
    Location
    The World
    Posts
    7,920

    Default

    Search index? I don't quite understand. Isn't every post put into the database and when I search it goes through those posts in the database? I don't understand searching quite that well but that is how I have always done it. I may get more results but if it helps me to find what I want then awesome.

  7. #7
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    If I rebuild the search index, expect 6+ hours of forum downtime What words are that short that you're searching for? I could add it to the length exception list if it's not something silly like "the"

    And looking how searches are stored in the database, it might need a hack to do that sorting thing, despite being relatively simple, so not doing that
    Problems playing downloaded videos? Try CCCP


  8. #8
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Normally, every word of four or more characters automatically gets built into the search index after every post, unless an admin has disabled that function. After a major upgrade, though, like when we upgrade to vB 3.5.0, the search index has to be completely rebuilt. If we allow words smaller than four characters to be indexed, the search index becomes bloated. The entire point of a search index is so that searches can be performed quickly and with minimal stress on the database.

  9. #9
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    It's already bloated, 8.1m entries in it
    Problems playing downloaded videos? Try CCCP


  10. #10
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Delete the index and start off with later post IDs. No one wants to search for Oldbie so-and-so's posts.

  11. #11
    Posts Occur in Real Time edczxcvbnm's Avatar
    Join Date
    Aug 2000
    Location
    The World
    Posts
    7,920

    Default

    I obviously have no clue how the searching really works on Vbullitin. I can't remember the words that I search for every now and then that are shorter than 4 words. Most of them are probably acryonims. I admit I don't use the search feature very much but when I do it seems to be a problem.

  12. #12
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Quote Originally Posted by Yamaneko
    Delete the index and start off with later post IDs. No one wants to search for Oldbie so-and-so's posts.
    Still need a huge downtime, considering the skew of the distribution of posts over time towards more recently as the forum size grew rapidly
    Problems playing downloaded videos? Try CCCP


  13. #13
    Ominous Wanderer Tech Admin Samuraid's Avatar
    Join Date
    Oct 2001
    Posts
    5,522

    Default

    Sorting the search results probably wouldn't be too bad on the database, but it would likely require us to modify the vBulletin source code a bit which we are trying to stay away from doing.

    As for setting the 3 character search limit... Yams is right, although vB's current method of using an external search table is old. Mysql has a built-in fulltext index that we should be using instead (unfortunately, vBulletin 3.5 needs to come out first) but even that limits words to 4 charaters or more.

  14. #14
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Does mysql's built-in index allow you to do partial-match searches easily?
    Problems playing downloaded videos? Try CCCP


  15. #15
    Ominous Wanderer Tech Admin Samuraid's Avatar
    Join Date
    Oct 2001
    Posts
    5,522

    Default

    Like phoenetic matches?

    I'm not perfectly sure, but I don't think so. You would probably need to create a metaphone/soundex index table for that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •