Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Elastic;
- use Elastica;
- class Base {
- const INDEX_ANALYZER = 'indexAnalyzer';
- const SEARCH_STRICT_ANALYZER = 'strictSearchAnalyzer';
- const SEARCH_ANALYZER = 'searchAnalyzer';
- protected $client;
- protected $index;
- protected $type;
- function __construct()
- {
- }
- function initServer($host, $port, $indexName, $typeName) {
- $this->client = new Elastica\Client(array(
- 'host' => $host,
- 'port' => $port
- ));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment