/
var
/
www
/
html
/
sugardemo
/
include
/
SugarSearchEngine
/
Upload File
HOME
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ /** * This class is an adapter to the existing SugarSpot/UnifiedSearch capabilities and is the default * search engine if no other external engines have been configured. * * !!! DEPRECATION WARNING !!! * * All code in include/SugarSearchEngine is going to be deprecated in a future * release. Do not use any of its APIs for code customizations as there will be * no guarantee of support and/or functionality for it. Use the new framework * located in the directories src/SearchEngine and src/Elasticsearch. * * @deprecated */ class SugarSearchEngine implements SugarSearchEngineInterface { public function search($query, $offset = 0, $limit = 20, $options = []) { $sugarSpot = new SugarSpot(); return $sugarSpot->search($query, $offset, $limit, $options); } }