Note: The Fetch Code Search Results page doesn't have a feedback option at the bottom so I had to submit this via the link on it's sibling "Overview" page.
The Code Search Results request body has a filters parameter and some examples. I need to submit a query to the api that uses logic operations. Is this possible? There's only a single example in the documentation and a simple description. The filters object schema is not documented.
In the UI for example I can create a query like:
bypass NOT "## - name: bypass" ext:yml NOT file:decorator.yml
Edit: I got this working, but documentation needs some help. I was getting a ""TF400898: An Internal Error Occurred". I needed to escape the quotes in the searchString parameter. Somewhat Misleading as I did not need to escape the quotes when I ran that search in the web UI.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 089d23cc-6ba5-ed72-dc2e-f4f6ac21eb09
Version Independent ID: c91cabe1-beb1-0468-2e3e-4c3d6b66e6b6
Note: The Fetch Code Search Results page doesn't have a feedback option at the bottom so I had to submit this via the link on it's sibling "Overview" page.
The Code Search Results request body has a filters parameter and some examples. I need to submit a query to the api that uses logic operations. Is this possible? There's only a single example in the documentation and a simple description. The filters object schema is not documented.
In the UI for example I can create a query like:
bypass NOT "## - name: bypass" ext:yml NOT file:decorator.yml
Edit: I got this working, but documentation needs some help. I was getting a ""TF400898: An Internal Error Occurred". I needed to escape the quotes in the searchString parameter. Somewhat Misleading as I did not need to escape the quotes when I ran that search in the web UI.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.