-
-
Notifications
You must be signed in to change notification settings - Fork 874
Closed
Description
OrientDB Version: 3.0.27
OS: linux (docker image)
Expected behavior
Using highlight in SEARCH_CLASS should work even if a value is null.
Actual behavior
Using highlight in SEARCH_CLASS return an error if an indexed field has null/empty value.
java.lang.IllegalArgumentException: Field title in document is not stored and cannot be analyzed
Steps to reproduce
CREATE CLASS MyClass EXTENDS V;
CREATE PROPERTY MyClass.title STRING;
CREATE PROPERTY MyClass.description STRING;
CREATE INDEX MyClass.fulltxtindex ON MyClass(title, description) FULLTEXT ENGINE LUCENE;
INSERT INTO MyClass (description) VALUES ("Test 1 !");
SELECT $title_hl, $description_hl FROM MyClass
WHERE SEARCH_CLASS("test", {
"highlight": {
"fields": ["title", "description"]
}
}) = true
Metadata
Metadata
Assignees
Labels
buglegacy not used anymorelegacy not used anymore