@Soorya Prabha Jagatheesan I like to use Lucene query language as it's rather popular in the search tools so I will provide some examples using it.
Not would be done via - or !
in your Lucene setup. Please see here for more information on NOT, OR, AND operators.
For finding files that contain a "term" rather than the exact word, you can try a regex query like /.term./ /.part2./
https://[service name].search.windows.net/indexes/[search index]/docs?api-version=2016-09-01&queryType=full&search=/.*term.*/ /.*part2.*/
Note: Azure Cognitive Search supports simple and full queries. Please use the full query to use Lucene.
Please let us know if you have further questions or concerns.