Re: Relevancy Rating

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21787
interpreted = N
texte = >>I have written a sherlock plugin and want to utilize the relevance ranking >>that >>sherlock can identify. How can I create a search result that has a numeric >>relevancy given with each founditem? Sherlock looks for a 100 for 100% >>relevancy on down to 0 for least relevant. > > Unfortunately WebCatalog does not expose its relevancy information inside > [founditems], but you can fake one by assuming that the topmost items are > the most relevant, and using a little [math] with the [index] and > [numfound] to create a smooth gradient from 100% down to 0% (I guess 50% or > so would make more sense). > > Sherlock is very nice, and very easy to implement -- congrats to Apple! > > Technical Support | ==== eCommerce and Beyond ==== I actually use the # of search terms to calculate a simple relevancy rating for our Sherlock plugin.predator = 1 word = 25% predator aliens = 2 words = 50% ... 4 or greater words = 100%It's not perfect (all items in a single search instance have the same relevance), but it's at least a rough measurement of overall relevance. Matching 4 words is probably more relevant than matching only 1 word in the grand scheme of things...Any chance a future version of Webcat will expose relevance inside [founditems]?-Dale ________________________ ______________________________ | Dale LaFountain | mailto:dalel@dhorse.com | | IT Director, WebMaster | http://www.dhorse.com/ | | Dark Horse Comics, Inc.|Phone: 503-652-8815 x324 | \________________________|______________________________/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Relevancy Rating (PCS Technical Support 1998)
  2. Re: Relevancy Rating (Dale LaFountain 1998)
  3. Re: Relevancy Rating (PCS Technical Support 1998)
  4. Relevancy Rating (Michael Scott Davis 1998)
>>I have written a sherlock plugin and want to utilize the relevance ranking >>that >>sherlock can identify. How can I create a search result that has a numeric >>relevancy given with each founditem? Sherlock looks for a 100 for 100% >>relevancy on down to 0 for least relevant. > > Unfortunately WebCatalog does not expose its relevancy information inside > [founditems], but you can fake one by assuming that the topmost items are > the most relevant, and using a little [math] with the [index] and > [numfound] to create a smooth gradient from 100% down to 0% (I guess 50% or > so would make more sense). > > Sherlock is very nice, and very easy to implement -- congrats to Apple! > > Technical Support | ==== eCommerce and Beyond ==== I actually use the # of search terms to calculate a simple relevancy rating for our Sherlock plugin.predator = 1 word = 25% predator aliens = 2 words = 50% ... 4 or greater words = 100%It's not perfect (all items in a single search instance have the same relevance), but it's at least a rough measurement of overall relevance. Matching 4 words is probably more relevant than matching only 1 word in the grand scheme of things...Any chance a future version of Webcat will expose relevance inside [founditems]?-Dale ________________________ ______________________________ | Dale LaFountain | mailto:dalel@dhorse.com | | IT Director, WebMaster | http://www.dhorse.com/ | | Dark Horse Comics, Inc.|Phone: 503-652-8815 x324 | \________________________|______________________________/ Dale LaFountain

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:

OT- AS/400 and Macs (2003) New WebCatalog site! (1997) Help! WebCat2 bug (1997) Emailer 1.01 bombs (1997) BW in a search (2007) Web Catalog Book? (1998) [WebDNA] maybe silly suggestion? [founditems] (2015) [WebDNA] FastCGI running more than one process! (2013) Locking up with WebCatalog... (1997) Sorting by date (1997) Sort Order on a page search (1997) FW: WebCat Contest (1998) Exclamation point (1997) [protect admin] (1997) Weird Linux WebCat Issue (2003) Stopping bad HTML propagation ? (1997) Using a database with a short url (2000) Re:Emailer and encryption (1997) problems with WebCat-Plugin (1997) Client-side Image Maps and WebCat? (1998)