PHP code example of coldtrick / opensearch

1. Go to this page and download the library: Download coldtrick/opensearch library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

coldtrick / opensearch example snippets


[
	'type.subtype',
]

[
	'counter_name' => counter_value
]

[
	'type' => ['subtype1', 'subtype2'],
]

[
	'type' => ['subtype1', 'subtype2'],
]

[
	'field_boosting' => [
		'title' => 2, // title is worth double
		'description' => 0.5 // description is worth half
	],
]