Skip to content

Commit cedbc41

Browse files
committed
Updated Readme, updated tests
1 parent e37b029 commit cedbc41

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Сlient for Manticore Search.
44

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

87
❗ WARNING: the current version has breaking changes compared to the previous release https://github.com/manticoresoftware/manticoresearch-python/tree/6.0.0
@@ -15,11 +14,10 @@ Minimum Manticore Search version is >= 2.5.1 with HTTP protocol enabled.
1514
| --------------------------- | ----------------------------------- | -------------- | ------------------------|
1615
| `manticoresearch-devel` | `dev` (latest development version) | 3.4 or newer | ✅ Fully Compatible |
1716
| 6.0.0 or newer | 7.0.0 or newer | 3.4 or newer | ✅ Fully Compatible |
18-
| 3.3.1 to 7.0.0 | 7.0.0 or newer | 3.4 or newer | ⚠️ Partially Compatible |
19-
| 3.3.1 to 6.0.0 | 7.0.0 or newer | 3.4 or newer | ⚠️ Partially Compatible |
20-
| 3.3.1 to 6.0.0 | 6.2.1 to 7.0.0 | 3.4 or newer | ✅ Fully Compatible |
21-
| 2.0.0 to 3.3.1 | 6.2.0 or newer | 3.4 or newer | ⚠️ Partially Compatible |
22-
| 2.0.0 to 3.3.1 | 4.2.1 to 6.2.0 | 3.4 or newer | ✅ Fully Compatible |
17+
| 6.0.0 or newer | 6.2.1 to 7.0.0 | 3.4 or newer | ⚠️ Partially Compatible |
18+
| 3.3.1 to 6.0.0 | 6.2.1 or newer | 3.4 or newer | ✅ Fully Compatible |
19+
| 2.0.0 to 3.3.1 | 6.2.1 or newer | 3.4 or newer | ⚠️ Partially Compatible |
20+
| 2.0.0 to 3.3.1 | 4.2.1 to 6.2.1 | 3.4 or newer | ✅ Fully Compatible |
2321
| 1.0.6 to 2.0.0 | 4.0.2 to 4.2.1 | 3.4 or newer | ✅ Fully Compatible |
2422
| 1.0.5 to 1.0.6 | 4.0.2 to 4.2.1 | 2.7 or newer | ⚠️ Partially Compatible |
2523
| 1.0.5 to 1.0.6 | 2.5.1 to 4.0.2 | 2.7 or newer | ✅ Fully Compatible |

test/test_manual.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ def test_manual(self):
3535
res = utilsApi.sql('query=CREATE TABLE IF NOT EXISTS movies (title text, plot text, _year integer, rating float, code multi)')
3636

3737
docs = [ \
38-
{"insert": {"index" : "movies", "id" : 1, "doc" : {"title" : "Star Trek 2: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2002, "rating": 6.4, "code": [1,2,3]}}}, \
39-
{"insert": {"index" : "movies", "id" : 2, "doc" : {"title" : "Star Trek 1: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2001, "rating": 6.5, "code": [1,12,3]}}},
40-
{"insert": {"index" : "movies", "id" : 3, "doc" : {"title" : "Star Trek 3: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2003, "rating": 6.6, "code": [11,2,3]}}}, \
41-
{"insert": {"index" : "movies", "id" : 4, "doc" : {"title" : "Star Trek 4: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2003, "rating": 6.5, "code": [1,2,4]}}},
38+
{"insert": {"table" : "movies", "id" : 1, "doc" : {"title" : "Star Trek 2: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2002, "rating": 6.4, "code": [1,2,3]}}}, \
39+
{"insert": {"table" : "movies", "id" : 2, "doc" : {"title" : "Star Trek 1: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2001, "rating": 6.5, "code": [1,12,3]}}},
40+
{"insert": {"table" : "movies", "id" : 3, "doc" : {"title" : "Star Trek 3: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2003, "rating": 6.6, "code": [11,2,3]}}}, \
41+
{"insert": {"table" : "movies", "id" : 4, "doc" : {"title" : "Star Trek 4: Nemesis", "plot": "The Enterprise is diverted to the Romulan homeworld Romulus, supposedly because they want to negotiate a peace treaty. Captain Picard and his crew discover a serious threat to the Federation once Praetor Shinzon plans to attack Earth.", "_year": 2003, "rating": 6.5, "code": [1,2,4]}}},
4242
]
4343
indexApi.bulk('\n'.join(map(json.dumps,docs)))
4444

4545
search_request = SearchRequest(
46-
index="movies",
46+
table="movies",
4747
)
4848

4949
matchFilter = QueryFilter()
@@ -56,7 +56,7 @@ def test_manual(self):
5656
res = searchApi.search(search_request)
5757
pprint(res)
5858

59-
search_request = {"index":"movies","query":{"bool": {"must": [ {"match": {"title":"4"}}] }}}
59+
search_request = {"table":"movies","query":{"bool": {"must": [ {"match": {"title":"4"}}] }}}
6060
pprint(search_request)
6161

6262
pprint("Tests finished")

0 commit comments

Comments
 (0)