}
private void searchInIndex() {
final OIndex index = database.getMetadata().getIndexManager().getIndex(compiledFilter.getTargetIndex());
if (index == null)
throw new OCommandExecutionException("Target index '" + compiledFilter.getTargetIndex() + "' not found");
if (compiledFilter.getRootCondition() != null) {
if (!"KEY".equalsIgnoreCase(compiledFilter.getRootCondition().getLeft().toString()))
throw new OCommandExecutionException("'Key' field is required for queries against indexes");
final Object right = compiledFilter.getRootCondition().getRight();
final Object keyValue = OSQLHelper.getValue(right);
Collection<OIdentifiable> result = null;