Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with using Geo Search #137

Closed
BalakovoSpace opened this issue Mar 16, 2018 · 2 comments
Closed

Problem with using Geo Search #137

BalakovoSpace opened this issue Mar 16, 2018 · 2 comments

Comments

@BalakovoSpace
Copy link

For generate Geo Search index i using string from examples:

use TeamTNT\TNTSearch\TNTSearch;
$candyShopIndexer = new TNTGeoIndexer;

But PHP generate fatal error:

Uncaught Error: Class 'TNTGeoIndexer' not found in ...

But all classes included and normal search / indexer work correctly.

Howto using Geo Search correctly?

@ultrono
Copy link

ultrono commented Mar 16, 2018

Please read the documentation and refer to the PHP manual. This is VERY clearly stated within the repository read me at https://github.com/teamtnt/tntsearch#geo-search.

I'd recommend reading about namespaces. You've imported the TNTSearch class but not the TNTGeoIndexer class - this is what the error message is saying.

@BalakovoSpace
Copy link
Author

Thank you.
Sorry for the stupid question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants