can we upload files(text, pdf etc.) on AWS Cloud Search using API? I read its documentation but I didn’t get any reference on
Or do I have to create SDF which contains extracted text from documents.
It is not possible to send files directly via API. It is only AWS Management Console which converts files (.txt, .pdf, .csv etc) to SDF (Search Data Format) during upload. Here is the official reference http://docs.amazonwebservices.com/cloudsearch/latest/developerguide/senddata.html
But you can covert your files to SDF using command line tool and then submit for indexing.