NodeJS layer in front of elasticsearch
This is a simple NodeJs Project, Pull and start working
- Asumes you have node and npm installed
- to install:
sudo npm install
- to run:
npm start
_
Test is done using mocha npm test
to run test
Configure the application
- There is a file in
conf/config.js
, there change your elasticsearch host and port, then you are ready to go.
Sample request and responses
- Throughout the project we are implementing request as ;
<url>/:clientId/api/:services/:otherparameters?queryparameters
- The api is used to search documents from elasticsearch
- In search API
service = search
- Syntax is like,
<url>/:clientId/api/search/:types?filters
- example,
<url>/test/api/search/people?name|like=john&age|gt=30
gets people(type) from test(index, or client), where name is like john, and age is greater than 30
- Contribution is highly appreciated
- Please open github issues
- Just give me pull request
- If you want to worktogether, mail me : [email protected]
- We are trying to complete the project and host it, but out of funds , help us, using bitcoin
This software is licensed under the GPL 2 license.
Copyright 2009-2014 rbnacharya < [email protected] > You may obtain a copy of the License at
http://www.gnu.org/licenses/gpl-2.0.txt
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.