acquia / acquia-search-proxy Goto Github PK
View Code? Open in Web Editor NEWA web service proxy for the Acquia Search service
License: MIT License
A web service proxy for the Acquia Search service
License: MIT License
If you define an "autocomplete" callback, docment how to test it
Modify that file to show the different operations, e.g. add, update, delete, and read (queries)
Currently the project root is the docroot, it would be great to put the index.php file in another directory named "docroot".
It would be great to define an index's connection through environment as opposed to requiring a configuration file and indexes.json
file.
Step:
./bin/acquia-search-proxy indexes:auth CONF_DIR/indexes.json
Proposed fix:
Add some fake example values into the command output
Helps preserve the repository and not introduce code from specific examples
Add examples of how to debug.
Also, consider adding upstream support for debugging to PSolr (namely the SolrClient.php class that builds the Guzzle request).
This tool relies on acquia-cloud-sdk, which has a subpackage for search SDK. In composer.json:
"acquia/acquia-sdk-php-search": ">=0.10.0,<0.11.0",
The search SDK relies on the PSolr package, found here: https://packagist.org/packages/acquia/acquia-sdk-php-search
PSolr shows a reliance on guzzle/service
https://packagist.org/packages/cpliakas/psolr, which has been deprecated: https://packagist.org/packages/guzzle/service
I found an acknowledgement of a Guzzle upgrade here: cpliakas/psolr#9. I have also found the most current package to be 6.2.3 from https://packagist.org/packages/guzzlehttp/guzzle (which appears to be the most recent, non-deprecated Guzzle). In lieu of a version 4/5 upgrade, I'm going to propose a version 6 upgrade in the issue.
I am leaving this here to track, as I would imagine if this upgrade happens, it would affect the code examples and possible usage of PSolr in this package.
Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/nerdstein/Projects/acquia-search-proxy/vendor/monolog/monolog/src/Monolog/Logger.php on line 311
Warning: DateTime::createFromFormat(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/nerdstein/Projects/acquia-search-proxy/vendor/symfony/http-foundation/Response.php on line 333
Currently version 0.7 of the SDK is required, at the time of this post 0.10 is the latest.
Should be "identifier".
Bad paths, docroot is in a directory inside of the project root, config is at the same level but not acknowledged in the example
The SDK has moved past the requirements, so we should appropriately bound the requirements.
require 'vendor/autoload.php';
When following the instructions, composer will load the vendor directory in the project root.
As such, this reference should be a directory up.
It's not clear if "%root-dir%" is a placeholder
It's not clear if we need to change the value for indexes.json if we build it as the instructions articulate (e.g. the default setting will persist)
It's not clear what acquia.search.proxy.identifier
represents. Is this a SOLR core?
Example has:
$result = \PSolr\Request\Suggest::factory()
->setQuery($query)
->sendRequest($app['acquia.search.index'])
;
setQuery no longer is a function, need to update this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.