Your own search engine: Framework spring + hibernate + struts2 + freemarker + DWR + Lucene

Source: Internet
Author: User
Original article: http://jansel.javaeye.com/blog/104509

// Comment: the framework is good, but it takes several seconds to display the result. Although I am still in the entry stage for the Java part, I think the framework is comfortable to use, but there is no doubt that it will increase the system link and slow the query.

Your own search engine: Framework Keywords:DWR Ajax compass

Even if I want to read this book only by searching engines, I want to learn Lucene. because the query speed in our system is relatively slow (but there is not much data ). especially if you do not have a good permission, it is important to solve the database overhead caused by the query permission. because the system permissions do a lot of things and are relatively fine-grained, the SQL statements are ultra-long during the final SQL spelling. As a result, the current solution is to filter the permissions into a stored procedure, A lot of business logic has been done with stored procedures. The problem I want to solve now is whether the query can be more elegant?

Well, some time ago, I even mentioned it in my blog. We can consider Lucene. I didn't pick up the book to learn it over the past few days. During the course of reading the book today, compass was mentioned in the book, downloaded. but I haven't read it yet. Let's talk about it later. however, it is troublesome to create an index on a local machine because disk sharing is not suitable for the dual-machine solution of the existing system. Do you want to store the index in the database? Or is there another storage? (Not yet)

It seems that the introduction of compass can basically combine Lucene with Hibernate and spring. If so, isn't hibernate's current project hibernate-seacher doing the same thing? Which one is better? This leaves a problem.

At present, I want to proceed with the project first. At least before this project is completed, I will come up with a compass solution. Otherwise, I will not be able to get started with the pre-research project. I even thought about the framework of my project. Spring + hibernate + struts2 + freemarker + DWR + Lucene.

Freemarker is mainly used to compile struts2 (webwork) Labels. It can be componentized, and others will be clear at a glance.

But which of the following is more suitable for DWR and GWT? Today, I asked some experts if GWT is more suitable for new projects. We need to make a change to the previous one. I'm afraid it's not good. you can also recommend some Ajax frameworks that can be well maintained later. my personal abilities are really limited.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.