Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DE-749 | wildcard analyzer [3.12] #324

Merged
merged 6 commits into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tests/test_analyzer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from packaging import version

from arango.exceptions import (
AnalyzerCreateError,
AnalyzerDeleteError,
Expand All @@ -7,7 +9,7 @@
from tests.helpers import assert_raises, generate_analyzer_name


def test_analyzer_management(db, bad_db, cluster, enterprise):
def test_analyzer_management(db, bad_db, cluster, enterprise, db_version):
analyzer_name = generate_analyzer_name()
full_analyzer_name = db.name + "::" + analyzer_name
bad_analyzer_name = generate_analyzer_name()
Expand Down Expand Up @@ -69,3 +71,10 @@ def test_analyzer_management(db, bad_db, cluster, enterprise):
"format": "latLngDouble",
}
assert db.delete_analyzer(analyzer_name)

if db_version >= version.parse("3.12.0"):
analyzer_name = generate_analyzer_name()
result = db.create_analyzer(analyzer_name, "wildcard", {"ngramSize": 4})
assert result["type"] == "wildcard"
assert result["features"] == []
assert result["properties"] == {"ngramSize": 4}
Loading