RMS Home | Guide Writing | Test Server | New Servers | Latest Reviews

Author Topic: Exact names first in searches  (Read 3875 times)

0 Members and 1 Guest are viewing this topic.

Offline Azma

Exact names first in searches
« on: Jul 15, 2014, 09:03 AM »
I think it would be nice if, when you search for an item/monster, the one with the exact name you searched for were first in the list. For instance, right now, when searching for Shield, lots of shields are before Shield [ 0 ]. Worst case, what you precisely searched for might end up not even being on the first page of the search results.

So essentially, if I search for "Shield", the results would be as follows:

1. Shield [ 0 ] (spaces because the forum makes a list out of a zero between brackets)
2. Shield [1]
3. All other shields in alphabetical order.
« Last Edit: Jul 16, 2014, 10:11 AM by Azma »

Advertisement

Offline yC

Re: Exact names first in searches
« Reply #1 on: Jul 27, 2014, 08:44 PM »
The slot is not part of the name, if you want to search for slot specifically you could use the search form option for that.  So everything with "shield" matches your search.

Offline Azma

Re: Exact names first in searches
« Reply #2 on: Jul 27, 2014, 10:43 PM »
I know that. But the number of slots is irrelevant. I'm not sure you've understood my message. I know they all match. I'm asking if -exact- matches, for example Shield, could come first, instead of being mixed up with all the other non-exact matches, for instance Valkyrja's Shield.

Here is a good example of a search that would benefit from having exact matches first: "wand"

http://ratemyserver.net/index.php?iname=wand&page=item_db&quick=1&isearch=Search

You searched for Wand (IDs 1604, 1605 and 1606) by saying its exact name, but all sorts of wands are before it, and whether you were looking at who drops the wand or where you can buy it, despite giving the exact name of the item you wanted, you need to go to page two to see it.
« Last Edit: Jul 28, 2014, 03:05 PM by Azma »

Offline Bue

Re: Exact names first in searches
« Reply #3 on: Sep 07, 2014, 07:02 PM »
You'll need a hash index on the item names to make the searches efficient.

Saw the date after posting. I blame Tripper for linking this section!

Offline Triper

Re: Exact names first in searches
« Reply #4 on: Sep 07, 2014, 07:09 PM »
I'm amazing euehuehuehuehue  /kis

Offline Azma

Re: Exact names first in searches
« Reply #5 on: Sep 08, 2014, 12:44 AM »
You'll need a hash index on the item names to make the searches efficient.

Saw the date after posting. I blame Tripper for linking this section!

Whoa, and here I thought I at least knew some about programming. I have no idea what you're talking about. :o