indexing.v3.searcher.js Maven / Gradle / Ivy
/*
* Copyright (c) 2010-2019 SAP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP - initial API and implementation
*/
var java = require('core/v3/java');
exports.search = function(index, term) {
var results = java.call('org.eclipse.dirigible.api.v3.indexing.IndexingFacade', 'search', [index, term]);
return JSON.parse(results);
};
exports.before = function(index, date) {
var results = java.call('org.eclipse.dirigible.api.v3.indexing.IndexingFacade', 'before', [index, '' + date.getTime()]);
return JSON.parse(results);
};
exports.after = function(index, date) {
var results = java.call('org.eclipse.dirigible.api.v3.indexing.IndexingFacade', 'after', [index, '' + date.getTime()]);
return JSON.parse(results);
};
exports.between = function(index, lower, upper) {
var results = java.call('org.eclipse.dirigible.api.v3.indexing.IndexingFacade', 'between', [index, '' + lower.getTime(), '' + upper.getTime()]);
return JSON.parse(results);
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy