solr_cli 0.2

Command line client for Apache Solr

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Miguel Olivares
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
solr_cli is a command-line client for Apache Solr.

Installation

From source code:

python setup.py install

From pypi:

pip install solr_cli

Usage

Execute command line tool

$ solr_cli
(disconnected)$


Connect to a solr instance:

(disconnected)$ connect http://localhost:8983/solr/
(http://localhost:8983/solr/)$


Make a query:

(http://localhost:8983/solr/)$ query *:*

{
 "responseHeader": {
 "status": 0,
 "QTime": 1,
 "params": {
 "q": "*:*",
 "wt": "python"
 }
 },
 "response": {
 "start": 0,
 "numFound": 2961305,
 "docs": [
 {......}
 ]
 }
}


Make a query using http parameters:

(http://localhost:8983/solr/)$ uri q=*:*&rows=0
{
 "responseHeader": {
 "status": 0,
 "QTime": 1,
 "params": {
 "q": "*:*",
 "rows": "0",
 "wt": "python"
 }
 },
 "response": {
 "start": 0,
 "numFound": 2961474,
 "docs": []
 }
}

Last updated on June 20th, 2012

requirements

#Apache Solr #command-line client #Apache #Solr #command-line #client

Add your review!

SUBMIT