Sun, Feb 2, 12:03 PM CST

Renderosity Forums / Community Center



Welcome to the Community Center Forum

Forum Moderators: wheatpenny Forum Coordinators: Anim8dtoon

Community Center F.A.Q (Last Updated: 2025 Jan 30 3:24 pm)

Forum news, updates, events, etc. Please sitemail any notices or questions for the staff to the Forum Moderators.



Subject: Searching the galleries produces a weird list


Ghostofmacbeth ( ) posted Thu, 13 March 2003 at 3:41 PM · edited Sun, 02 February 2025 at 12:01 PM

I normally search the galleries for specific topics but today the list is sort of jumbled, missing some images (Possibly) and is oldest to newest with the newest in the back (well outside of the jumble)... Did something change or goof up? Thanks



kbennett ( ) posted Thu, 13 March 2003 at 4:48 PM

Hmm. See what you mean. I'll IM the lords of the code and see if there's anything going on... Kev.


Spike ( ) posted Thu, 13 March 2003 at 5:02 PM

Lets ask Tommy...

You can't call it work if you love it... Zen Tambour

 


tutone1234 ( ) posted Thu, 13 March 2003 at 6:20 PM

I'm still working on some things - but I've been trying to improve the search functionality to consider more than one word individually.. the way it has previously worked is taking the search criteria as a specific phrase. The sort order on may need some tweaking but it should list most relevant to least relevant in actuality. Tommy


Ghostofmacbeth ( ) posted Thu, 13 March 2003 at 6:53 PM

What I am seeing right now is a random sampling of things from 2000, 2001 and perhaps 2002 listed first and for the most part none of them were anything remotely linked and then the most recent stuff was on page 17. Was just sort of doing a search for a general thing like "orc" or "warlord" and it turned up a lot of odd things. For the "orc" search I have a 2000 and then a 2002 and then a few more 2000s and then back to 2001. It seems to be sorting with creator name being the most important variable. In that search I would want to actually search for everything but creator but that isn't an option :) Just a thought and the way it is it makes it rough to find what I want to find. I also just did a serch for "orc" in just the title section and it found no results. But I know that there are indeed a large number of pictures with orc in the title I am not sure about them only having orc but it seems to defeat the purpose if it is only what you type when you search. Just my 2 cents.



tutone1234 ( ) posted Thu, 13 March 2003 at 7:04 PM

Okay - I've put some different parameters around the "Image Name" search to yield more precise results. Let me know how that works out. Thanks. Tommy


Ghostofmacbeth ( ) posted Thu, 13 March 2003 at 7:34 PM

Thanks .. Will go test it :)



_dodger ( ) posted Sat, 15 March 2003 at 6:10 AM

If you'd like a little suggestion, I can tell you how to get google/yahoo type parsing functionality... First, extract everything in quotes from the string and put them into an array In perl, this would work like:

while ($query =~ s/[+-]?"[^"]*"//) {
    push @quoted, $1;
}

Then split the remaining query on whitespace: @unquoted = split " ", $query; Then combine the arrays: @everything = (@quoted, @unquoted); Then iterate through the combined array and sort based on requirement prefix, removing the prefix: for (@everything) { if (s/^-//) { push @restricted, $; next; } if (s/^+//) { push @required, $; } push @terms, $_; }

Now you have an array called restricted containing terms it cannot have, an array called required containing terms ir must have, and an array called terms containing things it should but doesn't have to have. You can build a query using these arrays, using NOT LIKEs for the restricted array, and LIKEs for the required and terms arrays, with the terms ORed together and the required and restricted ANDed together.


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.