Socket
Socket
Sign inDemoInstall

mysolr

Package Overview
Dependencies
0
Maintainers
2
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mysolr

Solr Python binding


Maintainers
2

Readme

.. image:: https://secure.travis-ci.org/RedTuna/mysolr.png?branch=master :target: https://secure.travis-ci.org/RedTuna/mysolr

.. image:: https://coveralls.io/repos/RedTuna/mysolr/badge.png?branch=dev :target: https://coveralls.io/r/RedTuna/mysolr?branch=dev

.. image:: https://pypip.in/d/mysolr/badge.png :target: https://pypi.python.org/pypi/mysolr/

.. image:: https://pypip.in/license/mysolr/badge.png :target: https://pypi.python.org/pypi/mysolr/

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)

.. _here: http://mysolr.redtuna.org

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc