include/SugarSearchEngine/Elastic/Elastica/Searchable.php

Show: inherited
    Table of Contents

    Elastica searchable interface

    Author
    Thibault Duplessis  
    Category
    Xodoa  
    Package
    Elastica  

    \Elastica_Searchable

    Package: Elastica

    Elastica searchable interface

    Children
    \Elastica_Type_Abstract
    \Elastica_Index
    \Elastica_Type
    Author
    Thibault Duplessis  
    Category
    Xodoa  

    Methods

    methodpubliccount( string | array | \Elastica_Query $query = '' ) : int

    Counts results for a query

    If no query is set, matchall query is created

    Parameters
    Name Type Description
    $query string | array | \Elastica_Query

    Array with all query data inside or a Elastica_Query object

    Returns
    Type Description
    int number of documents matching the query
    methodpublicsearch( string | array | \Elastica_Query $query ) : \Elastica_ResultSet

    Searches results for a query

    TODO: Improve sample code { "from" : 0, "size" : 10, "sort" : { "postDate" : {"reverse" : true}, "user" : { }, "_score" : { } }, "query" : { "term" : { "user" : "kimchy" } } }

    Parameters
    Name Type Description
    $query string | array | \Elastica_Query

    Array with all query data inside or a Elastica_Query object

    Returns
    Type Description
    \Elastica_ResultSet ResultSet with all results inside
    Documentation was generated by DocBlox 0.18.1.