Skip to content

Spring boot application for searching Apache Lucene indexes

Notifications You must be signed in to change notification settings

amagge/lucene-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lucene-services

RESTful services for searching Apache Lucene indexes.

Dependencies:

Setup:

  1. Import the project into an IDE as "Existing Maven Project"

  2. Create an application.properties file in the config folder with your Lucene index location and port number. Refer to application.properties.template

  3. Run -> mvn clean package

  4. The build should run successfully and generate a runnable jar in the target folder. This can be run via terminal, or in Spring Tool Suite click Run As "Spring Boot App"

Using Services

The services may be accessed via HTTP requests. They return data in JSON format. Sample nodejs application for twitter dataset is available here.

Lucene query for Index records

  • Type: GET
  • Path: /search?query=<Lucene_Query>&count=<150|all>
  • Lucene Terms: username,text
  • Example Lucene Query: username:jackie AND text:"i am" AND NOT text:RT
  • Details on Lucene Query syntax can be found here and here
  • Lucene services uses the StandardAnalyzer for its QueryParser
  • Make sure you use the index the fields appropriately

About

Spring boot application for searching Apache Lucene indexes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages