Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Does this program have a search engine?

0

587 views
I don't see a search engine, is it possible to search questions and answers?
 
asked February 27, 2011 at 8:40 PM

 US

2 Answers

0
 
I am working on it right now.

The search feature should be ready soon, i estimate in less than a week.

The way it works is it uses MySQL for the indexing on question title and also indexing of question body will be added shortly after.

Also in the future I really want and plan on adding the support for lucene search engine. I am already planning for the possibility of different search back-end. The way I am setting it up now is to have an indexer class that would be extendable and if lucene search is available on the server, it will use Lucene, otherwise it will use MySQL, but if MySQL is also not installed then there will just be no search option, but at least we not going to require the presense of MySQL or any search provider. It will be optional.

Anyway, in the next few days I will add support for search using MySQL, then later after testing search by question title, I plan on adding search by question body and/or title.

Then later, probably in a few month, after all other features are working well, I will start working on added lucene support.

flag
answered March 3, 2011 at 7:47 AM
0
 
I just added the Search feature.

Right now it uses MySQL full text search. Only one MySQL table is required for this to work.

Currently it searches in title and body of the questions and returns best matches first.

The way I wrote the search feature is by using abstraction class SearchFactory and Indexer. It will be possible to easily switch to a full featured search engine like Lucene without affecting the rest of the program.

All that has to be done is to implement Lampcms Search Interface and any backend search provider can be used.

So right now the search is all setup and ready.

I also made it so that it's completely optional - if you don't have MySQL setup, then no errors will be show, the search feature just will not be available.

Lastly, no table setup is required during installation. All you have to do is provide details for your MySQL connection and when the program is used the first time it will automatically create the required table.

I'm trying to make it easy for end-users to use this program.

As always, ask your questions and post feature requests here.


flag
answered March 7, 2011 at 12:09 PM

Your answer

Join with account you already have

FTTF

Preview

Alert