Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Elastic\QueryEngine\TermsLookup\TermsLookup Class Reference
Inheritance diagram for SMW\Elastic\QueryEngine\TermsLookup\TermsLookup:
Inheritance graph
[legend]
Collaboration diagram for SMW\Elastic\QueryEngine\TermsLookup\TermsLookup:
Collaboration graph
[legend]

Public Member Functions

 __construct (Store $store, Options $options=null)
 
 clear ()
 
 newParameters (array $parameters=[])
 
 getOption ( $key, $default=false)
 
 lookup ( $type, Parameters $parameters)
 
 concept_index_lookup (Parameters $parameters)
 
 chain_index_lookup (Parameters $parameters)
 
 predef_index_lookup (Parameters $parameters)
 
 inverse_index_lookup (Parameters $parameters)
 
 terms_filter ( $field, $params)
 
 ids_filter ( $params)
 
 path_filter ( $id)
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::__construct ( Store  $store,
Options  $options = null 
)
Since
3.0
Parameters
Store$store
Options$options

Member Function Documentation

◆ chain_index_lookup()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::chain_index_lookup ( Parameters  $parameters)

Chainable queries (or better subqueries) aren't natively supported in ES.

This creates its own query and executes it as independent transaction to return a list of matchable _id to can be fed to the source query.

Since
3.0
Parameters
Parameters$parameters
Returns
array

◆ clear()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::clear ( )

◆ concept_index_lookup()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::concept_index_lookup ( Parameters  $parameters)
Since
3.0
Parameters
Parameters$parameters
Returns
array

◆ getOption()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::getOption (   $key,
  $default = false 
)
Since
3.0
Parameters
string$key
Returns
mixed

◆ ids_filter()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::ids_filter (   $params)
Since
3.0
Parameters
array$params
Returns
array

◆ inverse_index_lookup()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::inverse_index_lookup ( Parameters  $parameters)
Since
3.0
Parameters
Parameters$parameters
Returns
array

◆ lookup()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::lookup (   $type,
Parameters  $parameters 
)
Since
3.0
Parameters
$type
Parameters$parameters
Returns
array
Exceptions
RuntimeException

Implements SMW\Elastic\QueryEngine\TermsLookup.

◆ newParameters()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::newParameters ( array  $parameters = [])
Since
3.0
Parameters
array$parameters
Returns
Parameters

Implements SMW\Elastic\QueryEngine\TermsLookup.

◆ path_filter()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::path_filter (   $id)
Since
3.0
Parameters
string$id
Returns
array

◆ predef_index_lookup()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::predef_index_lookup ( Parameters  $parameters)
Since
3.0
Parameters
Parameters$parameters
Returns
array

◆ terms_filter()

SMW\Elastic\QueryEngine\TermsLookup\TermsLookup::terms_filter (   $field,
  $params 
)
Since
3.0
Parameters
string$field
array$params
Returns
array

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy