开发者

Represent the search result by adding relevant description

I'm developing simple search engine.If I search some thing using my search engine it will produce the list of urls which are relating with that search query.

I开发者_C百科 want to represent the search result by giving small,relevant description under each resulting url.(eg:- if we search something on google,you can see they will provide small description with the each resulting link.)

Any idea..?

Thank in advance!


You need to store position of each word in a webpage while indexing.

your index should contain- word id , document id of the document containing this word, number of occurrence of the word in that document , all the positions where the word occurred.

Represent the search result by adding relevant description

For more info you can read the research paper by Google founders- The Anatomy of a Large-Scale Hypertextual Web Search Engine


You can fetch the meta content of that page and display it as a small description . Google also does this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜