You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
CREATEINDEXMyClass.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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: