PHP Classes

File: test/elasticTest.php

Recommend this page to a friend!
  Classes of Eustaquio Rangel de Oliveira Jr.   PHP Torm ORM for ElasticSearch   test/elasticTest.php  
File: test/elasticTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Torm ORM for ElasticSearch
Adapter for Torm ORM to access Elastic
Author: By
Last change: If not updating, avoid delete also. Method to disable global indexing.
If any update is avoided on test environment, delete is also avoided.
Removed all the sleeps from the tests, very much faster and efficient.

Remember, call `refreshElastic` when you need some immediate data
consistency.
Removing a document when the object (and the record) is destroyed.

And we just won a `refreshElastic` method to remove all those sleeps
from the tests!
Now we can avoid updating documents on test environment.
Change the index name when running tests. We don't want document pollution.
Specifying the search result size.
Date: 9 years ago
Size: 8,305 bytes

You need to be a registered user and login to get this file.

1,616,055 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on: