Search works within a tiny, stick 5-year experiences

5 years, 50 + version iteration, not forgetting the beginning of the heart, in order to help the majority of owners are always easier to implement site search function

First, the development of mind and thinking :

Based Lucene.net heavy head to develop a site search actually quite time-consuming, and requires a certain ability of two open, a lot of people some combination of direct third party open source components, but if you need to solve the search quality, taking into account the search precision and recall, still need do a lot of adjustment and optimization work, then I wonder if it's simplify Lucene.net use, so the word, configuration, indexing, search, and other underlying API and other packaged into a middleware easier to use (that is, on the map SearchEasy.SearchEngine library), but because the middleware is not good use, simply search directly to the front of the station is also done, so users do not need to do any secondary development, directly in the browser click of a mouse can be resolved import data, create index, and then be able to use the direct search, site search system in this evolution is so over, and in the years of practice, has done a lot of details of the optimization work.

 

 

Second, the core components:

 

Lucene.net: search engine core libraries, third party open source;

 

Newtonsoft.Json  : for processing JSON third-party libraries;

 

TemplateEngine  : used to generate a static page template engine;

 

Chinese word: develop their own, with no third parties.

 

 

 

Third, the project architecture

 

Based on .NET 4.0 Framework, the traditional three-tier architecture, but reflected in the solution of two projects:

 

SearchEasy.SearchEngine: search engine library, the integration of Lucene , word, and a variety of search-related package library.

 

SearchEasy.SiteSearch  : the WEB project management background and foreground search code search section did not use pseudo-static, pure dynamic page generation system in which the polymerization is to generate static pages based on a template engine.
Solution Illustration:

 

Fourth, feelings and experiences

Of course, finally had to say, this is really not so little work to do good, to adhere to the present, it relies purely on one's feelings. Take such a long time, go to any software TO B, it is estimated can be much better than this, but practitioners indeed help some owners, the owners know a lot of friends, perhaps, gain insight than the harvest itself more of it.

A proposal to give the majority of techniques friends: Select effort is more important than, the direction is very important, not necessarily a bad direction can frenzied media attention next month

 

However, the product itself is good, with the owners say good, convenient and flexible, easy to use, it is natural niche, like tossing natural selection on the ES and technology tall, SOLR go.

Observe Address: http://www.searcheasy.net/zn

 

Guess you like

Origin www.cnblogs.com/kwklover/p/12014607.html