4

I make a Q&A website like Stack Overflow, and now I want to add it searching capability.

I want going to use the Google Search API but one of my friends said that it's better to have your own searching engine because Google doesn't index all pages (specially recently added pages) and also it has negative effect on the site ranking.

My question is that these statements is true or not and what is the best way for searching in this site?

Laurel
  • 5,771
  • 12
  • 29
  • 54
distance
  • 824
  • 7
  • 19

1 Answers1

2

Depending on your database full text search capabilities may be available. For example check MySQL : https://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html

Alternative solution is to use a dedicated search index like Lucene: https://lucene.apache.org/core/

  • What's the advantage of `lucene` than `google search api`? – distance Sep 01 '15 at 14:18
  • Lucene index is stored on your server, it is open source and can be fine tuned by you. There are whole books covering its usage: e.g. "Lucene in Action". With Google Site Search/Search API you can tweak only the API parameters, and it works as a black box. – Peter Kalef ' DidiSoft Sep 01 '15 at 14:58
  • Do you now whats the `lucene` Disadvantages ? maybe doesn't support some languages like Persian or Arabic, I don't know exactly. – distance Sep 01 '15 at 15:35
  • Unfortunately I'm not an expert in Lucene, and can't tell you internal details. Check this question for more info: http://stackoverflow.com/questions/737275/comparison-of-full-text-search-engine-lucene-sphinx-postgresql-mysql – Peter Kalef ' DidiSoft Sep 02 '15 at 10:58