oddball sorting problem -- almost okay now

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 55046
interpreted = N
texte = Doing a little more digging, I found allhit=1 in the online docs to turn off relevancy, and that cleared it up, mostly. However, when the second date is still in the future, it is sorting on the 1st (past) date. I'd rather have the 2nd date be the one in the sort order. I don't see a straightforward solution to this without using a trigger to update the database daily, or something, so I guess I'll just live with it. Terry At 11:22 PM -0500 12/17/03, Terry Wilson wrote: I have this: [search ....group1field=date1+date2&group1type=date&gegroup1datarq=[date]&date1type=date&date1sort=1] I originally had this: [search ...date1type=date&gedate1datarq=[date]&date1sort=1] The original search returned the records in the ascending order that I expected. When I altered it to include a second date (some events might have two dates), now it sorts screwy. Events with two dates float to the top (sorted correctly if both dates meet the ge criterion), followed by double dates where one date meets the requirement, and finally, the single date items (again, sorted correctly). What is causing the two-date items to precede the others? Maybe a clarification of what exactly is happening with grouped fields will help. I have it roughed out at http://terryfic.com/~yardsales/ Feel free to play with it. It will be up for a few more days as I develop it. Thanks, Terry ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. oddball sorting problem -- almost okay now ( Terry Wilson 2003)
Doing a little more digging, I found allhit=1 in the online docs to turn off relevancy, and that cleared it up, mostly. However, when the second date is still in the future, it is sorting on the 1st (past) date. I'd rather have the 2nd date be the one in the sort order. I don't see a straightforward solution to this without using a trigger to update the database daily, or something, so I guess I'll just live with it. Terry At 11:22 PM -0500 12/17/03, Terry Wilson wrote: I have this: [search ....group1field=date1+date2&group1type=date&gegroup1datarq=[date]&date1type=date&date1sort=1] I originally had this: [search ...date1type=date&gedate1datarq=[date]&date1sort=1] The original search returned the records in the ascending order that I expected. When I altered it to include a second date (some events might have two dates), now it sorts screwy. Events with two dates float to the top (sorted correctly if both dates meet the ge criterion), followed by double dates where one date meets the requirement, and finally, the single date items (again, sorted correctly). What is causing the two-date items to precede the others? Maybe a clarification of what exactly is happening with grouped fields will help. I have it roughed out at http://terryfic.com/~yardsales/ Feel free to play with it. It will be up for a few more days as I develop it. Thanks, Terry ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Terry Wilson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Snake Bites (1997) [WebDNA] RESTART WebDNA (2016) mod_webcatalog2.so.2-40 is garbled (2008) Webcat not processed for CACHEd image error pages (1998) WebCatalog stalls (1998) Problems passing [SKU] with $Replace in 2.0 (1997) OT - royalty free images (2002) ShowNext (1997) File Upload Problems (HELP!) (2000) Searchable WebCat (etc.) Docs ? (1997) group searching problem (2002) NT BETA BUG???? (1997) Multiple security dbs (1997) Sendmail and textarea (1998) Help with getting rpm file (2002) Emailer (1997) Just a thought (1998) Frames and WebCat (1997) AuthorizeNet Declines (2005) Running _every_ page through WebCat ? (1997)