Issue with querying an indexed search solution

Bogdan Teleuca 5 Reputation points
2024-02-25T01:07:40.84+00:00

I ran into an issue with my Exercise on creating a search solution. After indexing, querying the search with a select filter {"search": "London", "select": "url,sentiment,keyphrases", "filter": "metadata_author eq 'Reviewer' and sentiment eq 'positive'"} resulted in the error: "Invalid expression: Could not find a property named 'url' on type 'search.document'. Parameter name: $select". Consequently, the flask app returned the same error.

Azure | Azure Training
{count} vote

1 answer

Sort by: Most helpful
  1. Vinodh247 34,661 Reputation points MVP Volunteer Moderator
    2024-02-25T01:25:51.6733333+00:00

    Hi Bogdan Teleuca,

    Thanks for reaching out to Microsoft Q&A. Please check the basic points as below (if you have not done so yet) to narrow down the issue. In most of the cases, these small mistakes may cause trouble.

    • Ensure that the query syntax is correct.
    • Field names are case-sensitive. Make sure the case matches exactly ('url' instead of 'URL' or 'Url').
    • Ensure that the field 'url' exists in your search index. Double-check the field names and ensure they match exactly with the ones you specified in your query.
    • Verify that the 'url' field is correctly mapped during indexing. If it’s not mapped, you won’t be able to select it in your query.
    • Review your indexer configuration. Make sure that the source data (from your data source) contains the 'url' field.
    • Confirm that the indexer is correctly set up to map the 'url' field from the source data to the corresponding field in the search index.
    • Try querying with a simpler select filter to narrow down the issue

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.