Skip to main content

Manticore Python client

Сlient for Manticore Search.

❗ WARNING: this is a development version of the client. The latest release's readme is https://github.com/manticoresoftware/manticoresearch-python/tree/4.0.0

Requirements.

Minimum Manticore Search version is >= 2.5.1 with HTTP protocol enabled.

Manticore Search manticoresearch-python Python
>= 6.2.0 >= 3.3.1 >= 3.4
>= 4.2.1 >= 2.0.x >= 3.4
>= 4.0.2 < 4.2.1 >= 1.0.6 >= 3.4
>= 2.5.1 < 4.0.2 >= 1.0.5 >= 2.7

Installation & Usage

pip install

Install the manticoresearch package with pip

pip install manticoresearch-dev

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 import *
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 IndexApi API class
    api_instance = manticoresearch.IndexApi(api_client)
    body = "["'{\"insert\": {\"index\": \"test\", \"id\": 1, \"doc\": {\"title\": \"Title 1\"}}},\\n{\"insert\": {\"index\": \"test\", \"id\": 2, \"doc\": {\"title\": \"Title 2\"}}}'"]" # str | 

    try:
        # Bulk index operations
        api_response = api_instance.bulk(body)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling IndexApi->bulk: %s\n" % e)
    
    
    # Create an instance of the Search API class
    api_instance = manticoresearch.SearchApi(api_client)

    # Create SearchRequest
    search_request = SearchRequest()
    search_request.index='test'
    search_request.fullltext_filter=QueryFilter('Title 1') 
    
    # The example passes only required values which don't have defaults set
    try:
        # Perform a search
        api_response = api_instance.search(search_request)
        pprint(api_response)
    except manticoresearch.ApiException as e:
        print("Exception when calling SearchApi->search: %s\n" % e)

Documentation

Full documentation on the API Endpoints and Models used is available in docs folder as listed below.

Manticore Search server documentation: https://manual.manticoresearch.com.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manticoresearch-dev-4.1.24030713.tar.gz (66.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manticoresearch_dev-4.1.24030713-py3-none-any.whl (119.9 kB view details)

Uploaded Python 3

File details

Details for the file manticoresearch-dev-4.1.24030713.tar.gz.

File metadata

File hashes

Hashes for manticoresearch-dev-4.1.24030713.tar.gz
Algorithm Hash digest
SHA256 e08c6d2020d118d243651281ed5e82f8d7425347bdc564ea504090afb32d650f
MD5 efd91a3216ab189fab217c8a879f3de8
BLAKE2b-256 410941d3798e1da5d00cfe6df70b985febaef2a279d84c8959e18124c41c32e1

See more details on using hashes here.

File details

Details for the file manticoresearch_dev-4.1.24030713-py3-none-any.whl.

File metadata

File hashes

Hashes for manticoresearch_dev-4.1.24030713-py3-none-any.whl
Algorithm Hash digest
SHA256 5aff582658a70a58b5875a5d9c72c5f5f94655317a205ebaf6aa7182ef32b72d
MD5 c7e6b8979e49a2fa0bc31b9e2ddd0e2e
BLAKE2b-256 89a5e7976a4164d67181be7704ee2e4189a4de7380a72b22748c2d32405b59fa

See more details on using hashes here.

Release history Release notifications | RSS feed

4.1.24031114

2 files

This release

4.1.24030713 This release

2 files

Supported by

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