Closed UnbrandedTech closed 9 years ago
Any Ideas?
Make sure you have https://
or http://
in your URL. I think that should fix your issue.
'version' => '2013-01-01', // This caused an error if I didn't add it someone should put something in the documentation but w/e
Here are the docs on 'version'
. Where were you reading that might benefit from some clarification?
This is the page I was reading http://docs.aws.amazon.com/aws-sdk-php/guide/latest/service-cloudsearchdomain.html
Those are actually the docs for v2 of the SDK (please excuse the "latest" in the URL; we're working on that). The v3 documentation can be found here.
Is there a irc channel or a gitter that I can ask questions? There are a lot of really confusing things in the Documentation. Like
CloudSearchDomainClient->search(
'highlight' => '<string>' //this is a string
)
but in the api documentation http://docs.aws.amazon.com/cloudsearch/latest/developerguide/highlighting.html
It's in a dot notation:
highlight.field={"max_phrases":<int>,"format":<text / html>,"pre_tag":"*<string>*","post_tag":"*%*"}
How would you do this in the SDK?
BTW, @jeremeamia you were right. It works, now I have different Issues.
As we discussed in the Gitter chat, highlight
takes a JSON string with the fields mentioned in the CloudSearch developer guide.
I'm going to go ahead and close the issue, but please feel to reopen it if you have any questions.
I love the look of the new documentation and I followed it TO THE T and got this exception.
I run it and BOOM!
Any Ideas? The almighty Google has failed me.