daxu
daxu

Reputation: 4074

how to do exact search or filtering in azure search service?

I am very new to the azure search service. I created an index and uploaded my data there.

say my data has these fields:

ArticleId
Author
Abstract

In some cases, what I want is to return article with id 1 or 5.

In the search explorer, how can I construct query string to do this exact search or filter?

I tried:

&search=1
&search=ArticleId:1

but it seems not returning what I am looking for.

Upvotes: 1

Views: 688

Answers (1)

Eugene Shvets
Eugene Shvets

Reputation: 4671

Take a look at Azure Search filter syntax.

For your specific example, try &$filter=ArticleId eq 1

Upvotes: 5

Related Questions