PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   sorting results (http://www.phpdig.net/forum/showthread.php?t=2874)

ddrplayer 07-17-2008 12:45 AM

sorting results
 
i have the same problem with u
i have the function that sort the results
but the algorithm (sorting results) is very bad
when i implement it with php,it's show a slow execution

ddrplayer 07-17-2008 12:55 AM

----------------------------
someone (i don't know...) posted :
hi all

i've just installed phpdig for a big website with hundreds of pages. in the search results i've included html pages and also .doc, .pdf, etc.

how do i sort the list with these certain rules that i want to use:
- title rule: if a keyword or sentence match the title then this result will apear the top
- frequency rule: if a keyword or a phrase matches many times on a single page then pages with the most frequent one appear the top
- extension rule: html results will apear at the top then pdf and doc results

if there's no built-in functions that comes with phpdig for these features or don't know how but know which file that control the algorithm, queries and logic that would also help.

thanks b4
---------------------------------------


i have the same problem with u
i have the function that sort the results
but the algorithm (sorting results) is very bad
when i implement it with php,it's show a slow execution


All times are GMT -8. The time now is 07:45 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.