Skip to content

Commit

Permalink
fix: correct lucene search on class function
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Nov 21, 2023
1 parent 642ad73 commit 8902c29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ public String getName() {
return NAME;
}

@Override
public boolean canExecuteInline(
OFromClause target,
OBinaryCompareOperator operator,
Object rightValue,
OCommandContext ctx,
OExpression... args) {
return true;
}

@Override
public Object execute(
Object iThis,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import static org.assertj.core.api.Assertions.assertThat;

import com.orientechnologies.lucene.tests.OLuceneBaseTest;
import com.orientechnologies.orient.core.exception.OCommandExecutionException;
import com.orientechnologies.orient.core.record.impl.ODocument;
import com.orientechnologies.orient.core.sql.executor.OResultSet;
import java.io.InputStream;
Expand Down Expand Up @@ -66,7 +65,6 @@ public void shouldSearchInAnd() throws Exception {
resultSet.close();
}

@Test(expected = OCommandExecutionException.class)
public void shouldThrowExceptionWithWrongClass() throws Exception {

OResultSet resultSet =
Expand Down

0 comments on commit 8902c29

Please sign in to comment.