Skip to main content

Command line client for Apache Solr

Project description

Command line client for 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": []
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solr_cli-0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file solr_cli-0.1.tar.gz.

File metadata

  • Download URL: solr_cli-0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for solr_cli-0.1.tar.gz
Algorithm Hash digest
SHA256 66381ff397e52717e773a696dd82dc5c8a579130dc7ca6f0d5544073463fad1e
MD5 84cf9d656cfec9bc747db406106edf31
BLAKE2b-256 93843de3847f2b834fcdc783250abdd5f5bdc2e6106b6bfbba86499ec6bcaf24

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page