Skip to content

Elasticsearch JAVA API with custom search parameters

Notifications You must be signed in to change notification settings

misterbykl/elastic-java-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elastic-java-api

Elasticsearch JAVA API with custom search parameters

What is it?

The application basically connects to elasticsearch, creates query according to your custom fields and brings json elements

How to run

Configure app.properties file under /conf folder and run Main.java

App properties

# ELASTICSEARCH CONFIGURATION
elastic.ip=192.168.10.14
elastic.index=index*
elastic.size=100
elastic.start.time=2016-10-01T00:00:00.000
elastic.end.time=2016-10-02T23:59:59.000
elastic.scroll.enable=on
elastic.scroll.time=5m

# KEY/VALUE PAIR TO SEARCH FOR (KEY/VALUE NUMBERS MUST BE EQUAL AND IN AN ORDER RESPECTIVELY)
query.keys=name,lastname,age
query.values=ali,veli,20

# RESULT FIELD
# (THIS IS BASICALLY THE RESULT YOU ARE LOOKING FOR. MUST MATCH WITH ELASTIC FIELDS. ONLY ONE FIELD ALLOWED)
result.field=birthday

About

Elasticsearch JAVA API with custom search parameters

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages