How to search REST API with multiple sources
I know how it works for a single source: http://myHostname/coveo/rest?q=@syssource=="source name" What if I need to search something within multiple sources? Like @syssource=="source1" AND @syssource=="source2"? "AND" doesn't work in the query.
As specified in the query syntax reference, you can query for a field with any of some specific values using this syntax:
Note that using
AND like you do means that the query will ask for documents that has BOTH
@syssource=="source2" (also specified in the query syntax reference), which will never happen because a document will always have only one source. Changing it for the
OR operator would work, but I would suggest the first syntax I provided since it is a little more succinct and readable.
It would really help you to read some parts of the Getting Started with Queries guide as most basic answers about queries can be found there.