Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

writing repository adapters.

 
Lucky J Verma
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,


I need to write a repository adapter for a search engine website.
So that my website can talk to that repository(like CVS or any open source) and pick and index information from there.But this is the beginning and i am
looking over internet about the concepts and how can i start ? Does anyone have any clue on this?
 
Henry Wong
author
Marshal
Pie
Posts: 21112
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucky J Verma wrote:
I need to write a repository adapter for a search engine website.
So that my website can talk to that repository(like CVS or any open source) and pick and index information from there.But this is the beginning and i am
looking over internet about the concepts and how can i start ? Does anyone have any clue on this?


I don't think that there is a standard API to get to search data -- like Google or Yahoo or any other site. There may be one for the site, so maybe you can go through support for the site to see if there is one specific for it. Of course, assuming that it even exist, then you have to code specific to each search engine.

As an alternative, you could scrape the sites themselves. Use the URL class, or the http client clients, and get the data directly from the search page.

Henry

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic