Skip to main content

Solr Python binding

Project description

Fast python solr binding. Check full documentation here

Status

https://secure.travis-ci.org/RedTuna/mysolr.png

Features

  • Full query syntax support

  • Facets support

  • Highlighting support

  • Spellchecker support

  • Stats support

  • Concurrent searchs

  • Python 3 compatible

Instalation

From source code:

python setup.py install

From pypi:

pip intall mysolr

Usage

from mysolr import Solr

# Default connection to localhost:8080
solr = Solr()

# All solr params are supported!
query = {'q' : '*:*', 'facet' : 'true', 'facet.field' : 'foo'}
response = solr.search(**query)

# do stuff with documents
for document in response.documents:
    # modify field 'foo'
    document['foo'] = 'bar'

# update index with modified documents
solr.update(response.documents, commit=True)

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

mysolr-0.5.1.tar.gz (5.7 kB view hashes)

Uploaded Source

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