Ranking Module for default search and logic search
Posted: Tue Jan 13, 2009 6:36 am
Hi,
I read some posts which are already discussed about Ranking.
I want to write a custom ranking functionality for Full Text Search (FTS). Let me the explain the logic with two cases:
1. Search word : "PHP"
2. Search word: "PHP and AJAX"
So for 1st search word i received 20 results: I can count the number of search word found in each result and rank them and also i can give the priority to some database columns
For 2nd search word: i found 5 results (and is for LOGIC AND) and the number of times each word repeated in the 5 results are (Assumption : Customer has no choice to set the priority for the keywords)
PHP AJAX
a. 5 1
b. 4 1
c. 3 3
d. 2 2
e. 1 4
So now i can rank these 5.
So can anyone share the logic for a proper ranking approach.
Thank you
I read some posts which are already discussed about Ranking.
I want to write a custom ranking functionality for Full Text Search (FTS). Let me the explain the logic with two cases:
1. Search word : "PHP"
2. Search word: "PHP and AJAX"
So for 1st search word i received 20 results: I can count the number of search word found in each result and rank them and also i can give the priority to some database columns
For 2nd search word: i found 5 results (and is for LOGIC AND) and the number of times each word repeated in the 5 results are (Assumption : Customer has no choice to set the priority for the keywords)
PHP AJAX
a. 5 1
b. 4 1
c. 3 3
d. 2 2
e. 1 4
So now i can rank these 5.
So can anyone share the logic for a proper ranking approach.
Thank you