BobFett
asked on
Simple Search result ranking algorithm for ASP / SQL Server
Hi all,
I am developing a website that enables visitors to search through a database of books - the search will query the author, title and keyword field. As it is search mutiple fields, it would be useful to be able to rank the results by 'relevance' as do some search engines.
Does anyone know where I can get some good sample code for doing this?
Thanks
Bob
I am developing a website that enables visitors to search through a database of books - the search will query the author, title and keyword field. As it is search mutiple fields, it would be useful to be able to rank the results by 'relevance' as do some search engines.
Does anyone know where I can get some good sample code for doing this?
Thanks
Bob
You could use some of the many freetext searches provided within SQL. Each of these will provide a Rank or a Weight against the search. This would give you your relevance.
ASKER
Hi Alfa,
Thanks for your prompt response - not entirely sure what you mean? Could you expand on this please? Are these 'free text' searches inherent in SQL or do you mean SQL Server?
Bob
Thanks for your prompt response - not entirely sure what you mean? Could you expand on this please? Are these 'free text' searches inherent in SQL or do you mean SQL Server?
Bob
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.