import { search } from '@oliveai/ldk';
// See the main search page for opening and creating an index
// We'll be using the index created in the createIndex example
const indexName = "myIndex";
sortBy: ['-lastName', 'firstName'],
search.openIndex(indexName, config).then( index => {
myIndex.search("geo").then( result => {
console.log(JSON.stringify(result));
"_documentName": "George Smith",
"_type": "Geoffrey McPerson",
"_documentName": "Geoffrey McPerson"
"_documentName": "George Jones",