Python client for Manticore Search
Project description
manticoresearch
Experimental low-level client for Manticore Search.
Requirements.
Python 2.7 and 3.4+.
Minimum Manticore Search version is 2.5.1 with HTTP protocol enabled.
Installation & Usage
pip install
Install the manticoresearch
package with pip
pip install manticoresearch
Then import the package:
import manticoresearch
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import manticoresearch
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import manticoresearch
from manticoresearch.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://127.0.0.1:9308
# See configuration.py for a list of all supported configuration parameters.
configuration = manticoresearch.Configuration(
host = "http://127.0.0.1:9308"
)
# Enter a context with an instance of the API client
with manticoresearch.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = manticoresearch.SearchApi(api_client)
body = {"index":"test","query":{"match":{"content":"sample"}}}
try:
# Performs a search
api_response = api_instance.search(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling SearchApi->search: %s\n" % e)
Documentation
Full documentation is available in docs folder.
Manticore Search server documentation: https://manual.manticoresearch.com.
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
manticoresearch-1.0.2.tar.gz
(27.2 kB
view hashes)
Built Distribution
Close
Hashes for manticoresearch-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17ade4e587f0228f7c525543c434153c1da671900fb6a2ca87a81328d7805c6c |
|
MD5 | 5e082e8f7c78d022ba9236071ffbb058 |
|
BLAKE2b-256 | ed4aa8f345725c92b386d38d79b115db3fbdb2e340268daeb24129e3a49f8619 |