Query Suggestion Options
Last word completion
Keyboard Layouts
GitHub

👀 While it's loading, feel free to check out the other repositories:

🔔 To get a notification when it's ready, leave your email here:

By entering your email, you agree to receive notifications and marketing-related emails

Filter by reset

14 results 6 ms in manticoresoftware/manticoresearch-python

Ability to get document via `indexAPI.get`

Currently, I can only filter with searchAPI to get the document via its ID or field, I wonder if you could let indexAPI provide a more easy way to do so.

scruelscruel · 2024-03-21 · 9 · #12

How to filter by the keys of JSON type field?

…>>> utilsApi.sql(f"CREATE TABLE testx(title text, infos json) morphology='stem_en'") >>> indexApi.insert({"index": "testx", "doc": { "title": "test", 'infos': {-1: 1, -2: 1, -3: 2}}}) >>> search_res = searchApi.search( SearchRequest(index="testx", query …

scruelscruel · 2024-05-06 · 3 · #15

`UtilsApi` will return MVA type list value as string

According to your document: https://manual.manticoresearch.com/Creating_a_table/Data_types#Multi-value-integer-(MVA) We will be able to obtain a list for MVA type value. However, by using UtilsApi to query the index, it won't act as the same: >>> utilsApi …

scruelscruel · 2024-05-07 · 5 · #14

Question about `query` and `filter`s field.

What is the purpose of fulltext_filter and attr_filter ? It seems that your documentation didn't contain such related info about them: Furthermore, I would like to know what is the difference between the following code snippets: search_req = SearchRequest …

scruelscruel · 2024-06-13 · 3 · #16

est::size_S

Unsupported value type check only works with `None`

…>>> utilsApi.sql(f"CREATE TABLE testx(num bigint)") [{'total': 0, 'error': '', 'warning': ''}] >>> indexApi.insert({"index": "testx", "doc": {'num': None}}) ... manticoresearch.exceptions.ApiException: (400) Reason: Bad Request HTTP response headers: …

scruelscruel · 2024-06-17 · 1 · #17

est::size_S

Unexpected truncate if text contains null char `\x00`

import manticoresearch table_name = 'test' manticoresearch_config = manticoresearch.Configuration( host="http://127.0.0.1:9308") manticoresearch_client = manticoresearch.ApiClient(manticoresearch_config) utilsApi = manticoresearch.UtilsApi(manticoresearch …

scruelscruel · 2024-10-01 · 4 · #18

bug

Is there a complete introduction to `dsl` for http requests?

For example. I want to know how many tables are there. I will run import manticoresearch config = manticoresearch.Configuration( host = "http://127.0.0.1:9308" ) client = manticoresearch.ApiClient(config) indexApi = manticoresearch.IndexApi(client) …

sangensongsangensong · 2021-05-07 · 3 · #2

waiting for reply

利用SQL进行multi-query

利用SQL进行multi-query,怎么获取批量查询的结果?

lljqylljqy · 2023-07-19 · 10 · #4

bulk insert error

Hear is my code import json import platform import manticoresearch import time import csv import _csv os = platform.platform() datapath = "hacker_news_comments.csv" if not os.startswith("Linux") else "/home/fake_data/hacker_news_comments.csv" docs = [] …

sangensongsangensong · 2021-04-20 · 6 · #1

waiting for reply

SearchApi seems to generate a wrong endpoint

…Hi, I want to try the Python API, but I couldn't send a SearchRequest to localhost. On every request, I'm getting: Exception when calling SearchApi->search: (501) Reason: Not Implemented HTTP response headers: HTTPHeaderDict({'Server': '3.6.0 96d61d8@ …

akordeckiakordecki · 2021-07-09 · 4 · #3

UtilsApi.sql fails with `{"error":"query missing"}` but query works in mysql

Example query fails when called via UtilsApi.sql in python client with {"error":"query missing"} but same query works in mysql client. Steps to reproduce: import manticoresearch configuration = manticoresearch.Configuration(host="http://127.0.0.1:9308") …

narayanacharya6narayanacharya6 · 2022-04-07 · 1 · #8

Encoding issue with UtilsApi sql method when using UTF-8 charset

When trying to use the UtilsApi to send some SQL to manticore server the query is sent as plain text in the body. This runs into encoding issues if your query contains non ISO-8859-1 (or latin-1 ) characters because when your request body is str or bytes …

narayanacharya6narayanacharya6 · 2022-02-24 · 4 · #6

bug

Documentation lacking for SearchRequest parameters

I'm new to manticoresearch and manticoresearch-python and I am looking for more detailed documentation for the arguments in the SearchRequest constructor. I noticed that the "match" in the HTTP query is not equivalent to the the MATCH in the SQL syntax. …

narayanacharya6narayanacharya6 · 2023-04-20 · 8 · #7

bug

Invalid characters in MC break search API

Adding messages like this to MC seems to break the ability of the client to fetch them: 'msg': '[\x02L\u200bi\u200bl\u200bB\u200br\u200bu\u200bc\u200be\x02] sss' Indexing with the client works fine: {'error': None, 'items': [{'bulk': {'_id': …

syxiesyxie · 2022-09-13 · 3 · #10