include/SugarSearchEngine/Interface.php

Show: inherited
    Table of Contents

    \SugarSearchEngineInterface

    Package: SugarCRM

    Generic interface all sublcasses must implement in order to be pluggable with FTS.

    Children
    \SugarSearchEngine
    \SugarSearchEngineAbstractBase
    Api
     

    Methods

    methodpublicbulkInsert(  $docs ) : void

    Perform bulk inserts on serveral documents to mitigate performance issues.

    Parameters
    Name Type Description
    $docs
    Details
    Abstract
     
    methodpubliccreateIndex( boolean $recreate = false ) : void

    Create the index

    Parameters
    Name Type Description
    $recreate boolean

    OPTIONAL Deletes index first if already exists (default = false)

    Details
    Abstract
     
    methodpubliccreateIndexDocument( \SugarBean}stdClass $bean, array | null $searchFields = null ) : void

    Create the index document that will be sent to the IR System.

    Parameters
    Name Type Description
    $bean \SugarBean}stdClass
    $searchFields array | null
    Details
    Abstract
     
    methodpublicdelete(  $bean ) : void

    Delete a bean from the Full Text Search Engine

    Parameters
    Name Type Description
    $bean
    Details
    Abstract
     
    methodpublicgetServerStatus( ) : array

    Return info about the server status.

    Returns
    Type Description
    array valid: indicates if the connection was successful. status: text to display to the end user
    Details
    Abstract
     
    methodpublicindexBean(  $bean,  $batched = TRUE ) : void

    Pass in a bean and go through the list of fields to pass to the engine

    Parameters
    Name Type Description
    $bean
    $batched
    Details
    Abstract
     
    methodpublicsearch(  $query, int $offset = 0, int $limit = 20 ) : void

    Perform a search against the Full Text Search Engine

    Parameters
    Name Type Description
    $query
    $offset int
    $limit int
    Details
    Abstract
     

    \SugarSearchEngineResult

    Package: SugarCRM

    Interface for a single FTS result.

    Children
    \SugarSearchEngineAbstractResult

    Methods

    methodpublic__toString( ) : void

    Never called within the view but helpful for debugging purposes.

    Details
    Abstract
     
    methodpublicgetHighlightedHitText( ) : void

    Return the highlighted text of a hit with the field name as the key

    Details
    Abstract
     
    methodpublicgetId( ) : String

    Get the id of the result

    Returns
    Type Description
    String The id of the result, typically a SugarBean id.
    Details
    Abstract
     
    methodpublicgetModule( ) : String

    Get the module name of the result

    Returns
    Type Description
    String
    Details
    Abstract
     
    methodpublicgetModuleName( ) : String

    Get the translated module name of the result

    Returns
    Type Description
    String
    Details
    Abstract
     
    methodpublicgetSummaryText( ) : String

    Get the summary text of the result

    Returns
    Type Description
    String
    Details
    Abstract
     

    \SugarSearchEngineResultSet

    Package: SugarCRM

    Interface to access results from a FTS search. Is composed of zero or more SugarSearchEngineResult objects.

    Parent(s)
    \Iterator
    Children
    \SugarSeachEngineElasticResultSet

    Methods

    methodpublicgetFacets( ) : array

    Return facets associated with this search.

    Returns
    Type Description
    array
    methodpublicgetModuleFacet( ) : void

    Return the facet results for the modules used in the search.

    Details
    Abstract
     
    methodpublicgetTotalHits( ) : int

    Get the total hits found by the search criteria.

    Returns
    Type Description
    int
    Details
    Abstract
     
    methodpublicgetTotalTime( ) : int

    Get the total amount of time the search took to complete.

    Returns
    Type Description
    int
    Details
    Abstract
     
    Documentation was generated by DocBlox 0.18.1.