Graph Visualization Using Solr 6
Solr 6 provides a load of great features, one of them is graph visualization.
Join the DZone community and get the full member experience.Join For Free
with the release of solr 6 we’ve got the possibility of working with graphs when working with solr ( see more ). using the appropriate query we can retrieve documents representing a graph build out of our documents. the one missing piece was the visualization of the returned results. we thought we can fill that hole and we’ve developed a very simple tool to handle the visualization.
- solr instance address
- collection name
- parent document field
- document identifier field
- display field
- maximum number of documents to retrieve
on the basis of the above information , we can create a very simple visualization of the graph:
what do you need?
to use our visualization tool, all you need to do is download the mentioned graph.html file and put it into $ solr_home/server/solr-webapp/webapp directory. after that you just launch your favorite web browser and go to http://localhost:8983/solr/graph.html . this is done so we can omit all the cors related problems.
you should remember that the functionality was developed very fast and it has a number of limitations (though we will work on them in the following weeks):
- we didn’t test it on large data sets
- cors dependent
- it looks awful
- it doesn’t use paging
we have a few ideas around the functionality. we would like to improve how the visualization looks and remove the dependency on cors so that is easier to use. we will also extend the functionality to allow for filtering, providing different queries and allow control over all parameters around graph query. we would also like to hear from you, what you would like to have here and of course we will accept any pull requests on github, help is welcome
Published at DZone with permission of Rafał Kuć, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.