Skip to content

JigarDedhia/GraphQLusingApacheSolr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

GraphQLusingApacheSolr

GraphQL Demo using Apache Solr

#Prerequisite - Install Apache Solr using the link https://lucene.apache.org/solr/guide/7_0/installing-solr.html

The steps to run and test the application:

  1. Run the application as a Spring Maven Application
  2. You can use postman to run the endpoints
  3. You can use the solr interface to execute GraphQL queries at "http://localhost:8983/solr"

#Sample Solr Queries/Mutations:

Select core on the left menu

(in our case Order)
  1. Mutation:
    a. Select Documents option under the selected core
    b. You can now add documents either by adding it in JSON or uploading a json file
    c. Hit Submit Document

  2. Query:
    a. Select the Query option under the selected core
    b. You can specify the parameters which you want to query in q textbox c. Sample queries as below:

orderDescription:abc
orderDescription:abc
OR
productName:qwerty

You can try various combinations like above using keywords like AND, OR, etc.

Reference link for Apache Solr Querying Documentation: "https://lucene.apache.org/solr/guide/6_6/common-query-parameters.html"

About

GraphQL Demo using Apache Solr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages