Coder Social home page Coder Social logo

solrcloudpy

solrcloudpy is a python library for interacting with SolrCloud. This library aims to take advantage of the following features of Solr:

  • Distributed indexing and searching and transparent failover
  • Full JSON api
  • Centralized index management
  • Near-realtime search

Version 4.x is compatible with all supported versions of SolrCloud. For older versions, you should consider using 3.x, which supports versions 4 through 6. The API is meant to be close to pymongo's API, where one can access collections and databases as simple attributes or dictionary keys.

As of 2016, this library is maintained by the Solrcloudpy community. Contributions are welcome.

Usage

conn = SolrConnection(["localhost:9983","localhost:8984"], version="6.0.0")
conn.create('test1',num_shards=1,replication_factor=2)

Access an existing collection:

conn.test_collection.search({'q':'query1'})
conn["test_collection"].search({'q':'query2'})

Index documents:

docs = [{"id":"1", "name":"a"},{"id":"2","name":"b"}]
collection.add(docs)

Search documents:

collection.search({'q':'*:*'})

Documentation and API

Documentation can be found at http://solrcloudpy.github.io/solrcloudpy/

solrcloudpy's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.