Giter Site home page Giter Site logo

rodrigo156 / jpa-lucene-spring-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adrianmilne/jpa-lucene-spring-demo

0.0 2.0 0.0 74 KB

Demo project using JPA, Lucene, Spring, DBUnit and JMockit - to persist and search for simple Book data.

Java 100.00%

jpa-lucene-spring-demo's Introduction

jpa-lucene-spring-demo

Full write up at Javalobby: http://architects.dzone.com/articles/jpa-searching-using-lucene

Also on Blog: http://corsoftlimited.blogspot.co.uk/2013/08/jpa-searching-using-lucene-working.html

Demo project using JPA, Lucene, Spring, DBUnit and JMockit - to persist and search for simple Book data.

This is a Maven project. To build it and run the tests, you first need to install maven (http://maven.apache.org/).

Once you have Maven installed and working, and the project cloned locally, navigate to the project root directory, and type:

'mvn clean install'

This will compile the project and run the tests. There are 2 test classes - a simple Unit test that uses JUnit and JMockit, and another test that uses DBUnit.

The DBUnit test is a good example to get a feel for how this works - it will populate the in memory HSQL database, and then use Lucene to query the data in there. The example is a simple one, but illustrates the basic concepts of how to wire up the infrastructure to integrate Lucene and JPA.

jpa-lucene-spring-demo's People

Contributors

adrianmilne avatar

Watchers

James Cloos avatar Rodrigo Pereira avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.