Note: Jetty is a full-java-based webserver which has a very small memory footprint.
This ensures that the application instead of the server takes up the full machine memory when running.
It also has support for SPDY, WebSocket, OSGi, JMX, JNDI, JAAS etc.
Now that Solr is running, you can index some documents by running java -jar post.jar *.xml from
Then select collection1 from the left drop-down at http://localhost:8983/solr
From the above, various queries can be run whose syntax is as follows:
q=USB& (Main query which will get documents containing the word USB)
fq=manu:Canon& (Filter Query that filters obtained results, selecting those where manu is Canon)
sort=price asc& (Sorts by price in ascending order)
fl=id,name,price,score& (Specifies the fields to obtain from the query)
wt=json& (Specified the format of results. XML/CSV can also be specified)
indent=true& (Flag to indent results or not)
start=0&rows=10 (For pagination)
For a complete guide on the query syntax, see the lucene site
Got a thought to share or found a bug in the code? We'd love to hear from you: