Link to home
Start Free TrialLog in
Avatar of Software Programmer
Software Programmer

asked on

Cross platform application in java like ambar cloud

How to create a cross platform application in java like ambar cloud ??

I went through the ambar cloud - open source search engine (https://ambar.cloud/ and https://github.com/RD17/ambar) and astonished at his amazing features.

I would like to build the similar one in java and not sure which tech stack i need to choose and what would be the design and what are the third party libraries might required to built it

Can some java experts help me with suggestions, comments and design and help ?
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Why reinvent the wheel when everything is there.  It looks like you can can add this using Docker then create your own custom code against the api https://github.com/RD17/ambar/blob/master/WebApi/src/api/search.js
Avatar of Software Programmer
Software Programmer

ASKER

Could you please kindly explain in detail, i couldn't follow ?
What I am getting at is it sounds like there is a cool product to use already and you are wanting to recreate what looks like a huge undertaking just to change languages to java.  

I would start by installing https://github.com/RD17/ambar/blob/master/Install.md in your test environment.  Then use the web api https://blog.ambar.cloud/ambar-use-case-integrated-parse-and-search-solution/. The examples on that page include

To upload a file into Ambar, use this method:

POST http://ambar/api/files/:sourceId/:filename   
curl -X POST \  
  http://ambar/api/files/Books/1984-george_orwell.rtf \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F 1984-george_orwell.rtf=@1984-george_orwell.rtf

Open in new window


The method for search is

GET http://ambar/api/search 
The parameters are:
query - search query
size - number of results to retrieve (default is '10')
page - page of results to retreive (default is '0', for reference: page=0&size=10 returns first 10 hits, page=1&size=10 returns hits from 10th to 20th)
curl -i http://ambar/api/search?query=%22Big%20Brother%20Watch%22~3  

Open in new window


You can use java or whatever language you want to hit the api. But first you have to install the entire project via docker.
Docker seems to be very heavy steps. Is there a way to bundle a exe or make it cross platform ??
My only point is that project is ready to go and you can use java to access the rest api.  I can't  help beyond that.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.