Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Help regarding search API

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I am struggling to understand the search APIs. Few of them that I know are Lucene and Hibernate Search. Lucene is a text search api(not database) and with hibernate i can search the database.Am I correct ? Please advice me on which search api is good and in which way. What are the other good search APIs in the market. I am a java developer and looking for a search api to search the database.

Regards,
subhadeep
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lucene can search anything for which you write an indexer - databases included. Hibernate Search (which uses Lucene under the wraps) apparently provides an indexer especially for DBs.

Lucene is great -I don't think there's anything more capable in the Java space- and it's pretty easy to get started with (just check the examples in the documentation). If you want to get a Lucene solution to production you should really work through Lucene in Action, though. There are some complexities behind it that you need to understand and which are not obvious.

Also check out Apache Solr, which is a search server based on Lucene.
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Like Lester already said hibernate search use Lucene internally. It provides additional functionality for indexing and search of persisted entity classes. It allows you to annotate you (existing) entity classes and then hibernate search handles storing it in the index and updating it when necessary. Also it integrates with the existing entity manager making it easily accessible through out your program.
 
subhadeep chakraborty
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I think I will start with Lucene, probably I will be able to understand where each of them fit. Thanks.

Regards,
Subhadeep
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic