Python client for Solr
Project description
solr-dsl
A high-level library for querying Solr with Python. Build on the lower-level Pysolr.
Example
from datetime import date, datetime
from pysolr import Solr
from solr_dsl import Search
solr = Solr("http://localhost:8983/solr/test")
search = Search(solr) \
.require("doc_type", "solution") \
.require("domain", "example1", "example2")
.with_range("date", "2018-01-01T00:00:00Z", "now")
for document in search.scan():
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
solr-dsl-0.0.2.tar.gz
(2.0 kB
view hashes)