Skip to main content

Solr Python binding

Project description

https://secure.travis-ci.org/RedTuna/mysolr.png?branch=master https://coveralls.io/repos/RedTuna/mysolr/badge.png?branch=dev https://pypip.in/d/mysolr/badge.png https://pypip.in/license/mysolr/badge.png

mysolr

Fast python solr binding. Check full documentation here

Features

  • Full query syntax support

  • Facets support

  • Highlighting support

  • Spellchecker support

  • More like this support

  • Stats support

  • Concurrent searchs

  • Python 3 compatible

Installation

From source code:

python setup.py install

From pypi:

pip install 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.8.3.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file mysolr-0.8.3.tar.gz.

File metadata

  • Download URL: mysolr-0.8.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mysolr-0.8.3.tar.gz
Algorithm Hash digest
SHA256 47545569c68177a27d5ca57341745c26cc6980cf08580bc52004c7bece47506d
MD5 4259f84ddbff001a00171919d0400bc3
BLAKE2b-256 435eea920b27971938d826c5ab0fde16888fe7d3c592f3712f117f67d0fea4d7

See more details on using hashes here.

Supported by

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