IIndexOptions

interface OCP\FullTextSearch\Model\IIndexOptions
Interface IIndexOptions
IndexOptions are created in FullTextSearch when an admin initiate an index
from the command line:

./occ fulltextsearch:index “{\”option1\”: \”value\”, \”option2\”: true}”
Source:lib/public/FullTextSearch/Model/IIndexOptions.php#40

Methods

public OCP\FullTextSearch\Model\IIndexOptions::getOption($option, $default="")
Get the value (as a string) for an option.
Source:

lib/public/FullTextSearch/Model/IIndexOptions.php#53

Parameters:
  • $option (string)
  • $default (string)
Since:

15.0.0

Returns:

string

public OCP\FullTextSearch\Model\IIndexOptions::getOptionArray($option, $default=[])
Get the value (as an array) for an option.
Source:

lib/public/FullTextSearch/Model/IIndexOptions.php#65

Parameters:
  • $option (string)
  • $default (array)
Since:

15.0.0

Returns:

array

public OCP\FullTextSearch\Model\IIndexOptions::getOptionBool($option, $default)
Get the value (as an boolean) for an option.
Source:

lib/public/FullTextSearch/Model/IIndexOptions.php#77

Parameters:
  • $option (string)
  • $default (bool)
Since:

15.0.0

Returns:

bool