Skip to content

Commit ee902fd

Browse files
committed
edits
1 parent 9f19b4a commit ee902fd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/search/vector-search-how-to-query.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,11 @@ Here's a modified example so that you can see the basic structure of a response
224224

225225
## Filter and vector queries
226226

227-
A query request can include a vector query and a [filter expression](search-filters.md). Filters apply to text and numeric fields, and are useful for including or excluding search documents based on filter criteria. Although a vector field isn't filterable itself, you can set up a filterable text or numeric field.
227+
A query request can include a vector query and a [filter expression](search-filters.md). Filters apply to text and numeric fields, and are useful for including or excluding search documents based on filter criteria. Although a vector field isn't filterable itself, you can attribute a text or numeric field in the same index as "filterable".
228228

229-
In contrast with full text search, a filter in a pure vector query is effectively processed as a post-query operation. The set of k-NN is retrieved, and then combined with the set of filtered results. As such, the value of `"k"` predetermines the surface over which the filter is applied. For `"k": 10`, the filter is applied to 10 most similar documents. For `"k": 100`, the filter iterates over 100 documents (assuming the index contains 100 documents that are sufficiently similar to the query).
229+
In contrast with full text search, a filter in a pure vector query is effectively processed as a post-query operation. The set of `"k"` nearest neighbors is retrieved, and then combined with the set of filtered results. As such, the value of `"k"` predetermines the surface over which the filter is applied. For `"k": 10`, the filter is applied to 10 most similar documents. For `"k": 100`, the filter iterates over 100 documents (assuming the index contains 100 documents that are sufficiently similar to the query).
230+
231+
Here's an example of filter expressions combined with a vector query:
230232

231233
```http
232234
POST https://{{search-service-name}}.search.windows.net/indexes/{{index-name}}/docs/search?api-version=2023-07-01-Preview
@@ -252,7 +254,7 @@ api-key: {{admin-api-key}}
252254
```
253255

254256
> [!TIP]
255-
> If you don't have source fields with text or numeric values, check for document metadata, such as LastModified or CreatedBy properties that might be useful in a filter.
257+
> If you don't have source fields with text or numeric values, check for document metadata, such as LastModified or CreatedBy properties, that might be useful in a filter.
256258
257259
## Query syntax for hybrid search
258260

0 commit comments

Comments
 (0)