Skip to content

A working 100% javascript MVC application that uses a simple nodejs httpserver script, and solr add, update, delete nodejs scripts.

License

Notifications You must be signed in to change notification settings

jsclosures/javascriptsolrnodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascriptsolrnodejs

A working 100% javascript MVC application that uses a simple nodejs httpserver script, and solr add, update, delete nodejs scripts.

Solr REST demo using pure javascript, a little bit of dojo (AMD and others), and nodejs.

A complete REST application using

NodeJs

https://nodejs.org/dist/v0.12.6/x64/node-v0.12.6-x64.msi https://nodejs.org/dist/v0.12.6/node-v0.12.6.pkg https://nodejs.org/dist/v0.12.6/node-v0.12.6-linux-x64.tar.gz

Latest Solr

http://www.apache.org/dyn/closer.cgi/lucene/solr/5.2.1

install nodejs as follows:

c:\apps\nodejs

copy into nodejs

scripts webapps

run the server as follows

node scripts/httpserver.js

http://localhost:8988/index.html

Login with

any user and password as long as they are the same

username = password

Install Solr

solr.cmd -c -p 8983 -s d:\apps\solr-5.0.0\server\solr -e techproducts

D:\apps\solr-5.0.0\server\scripts\cloud-scripts>.\zkcli.bat -cmd downconfig -confname techproducts -z localhost:9883 -confdir d:\apps\solrconfig\techproducts

copy the techproducts directory to jsclosures

D:\apps\solr-5.0.0\server\scripts\cloud-scripts>.\zkcli.bat -cmd upconfig -confname jsclosures -z localhost:9883 -confdir d:\apps\solrconfig\jsclosures

solr.cmd -c -p 8983 -s d:\apps\solr-5.0.0\server\solr -e techproducts

D:\apps\solr-5.0.0\server\scripts\cloud-scripts>.\zkcli.bat -cmd downconfig -confname techproducts -z localhost:9983 -confdir d:\apps\solrconfig\techproducts

copy the techproducts directory to jsclosures

change the schema.xml

D:\apps\solr-5.0.0\server\scripts\cloud-scripts>.\zkcli.bat -cmd upconfig -confname jsclosures -z localhost:9983 -confdir d:\apps\solrconfig\jsclosures

http://localhost:8888/solr/admin/cores?action=CREATE&name=jsclosures&collection=jsclosures&property.shard=shard1

http://localhost:8888/solr/jsclosures/update?stream.body=:

http://localhost:8888/solr/jsclosures/update?stream.body=

solr.cmd stop -all

solr.cmd -c -p 8983 -s d:\apps\solr-5.0.0\server\solr

Load some test data

node scripts/solrwrite.js

About

A working 100% javascript MVC application that uses a simple nodejs httpserver script, and solr add, update, delete nodejs scripts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published