Skip to content

Commit 8fea651

Browse files
committed
checkpoint
1 parent d87aa3b commit 8fea651

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

articles/search/TOC.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,7 @@
275275
href: search-query-lucene-examples.md
276276
- name: Use Search Explorer (portal)
277277
href: search-explorer.md
278-
- name: Special characters
279-
href: search-query-special-characters.md
280-
- name: Find patterns in whole or partial terms
278+
- name: Special characters and partial terms
281279
href: search-query-partial-matching.md
282280
- name: Syntax reference
283281
items:

articles/search/search-query-partial-matching.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ When you need to search on partial strings or special characters, you can overri
2323
+ Assign the analyzer to the field
2424
+ Build the index and test
2525

26-
This article walks you through each step. The approach described here can be used in other scenarios. In particular, wildcard and regular expression queries also need whole terms as the basis for pattern matching.
26+
This article walks you through each step. The approach described here can be used in other scenarios. Wildcard and regular expression queries also need whole terms as the basis for pattern matching.
2727

2828
## Choosing an analyzer
2929

@@ -208,19 +208,23 @@ A token filter adds additional processing over existing tokens in your index. Th
208208

209209
## Build and test the index
210210

211-
Once the index definition with analyzer configuration is done, your next step is to run [Create Index](https://docs.microsoft.com/rest/api/searchservice/create-index) on the service, and then import data. Index names must be unique. If the index already exists, you can either rename the index or delete and recreate it.
211+
Once the index definition and analyzer configuration work is done, your next step is to run [Create Index](https://docs.microsoft.com/rest/api/searchservice/create-index) on the service, and then import data. Index names must be unique. If the index already exists, you can either rename the index or delete and recreate it.
212212

213-
## Query for patterns
213+
### Advanced query patterns
214214

215215
Once you have an index that contains terms in the correct format, you can specify patterns to find matching documents.
216216

217217
[Wildcard](search-query-lucene-examples.md#example-7-wildcard-search) and [Regular expression (RegEx)](search-query-lucene-examples.md#example-6-regex) queries are often used to find patterns on content that is expressed as full tokens in an index.
218218

219219
1. On the query request, add `querytype=full` to specify the full Lucene query syntax used for wildcard and RegEx queries.
220220

221-
2. In the query string:
221+
```http
222+
GET https://<SEARCH-SERVICE>.search.windows.net/indexes/<INDEX>/docs?search=*&query-type=true&api-version=2019-05-06
223+
````
222224

223-
+ For wildcard search, embed `*` or `?` wildcard characters
225+
2. In the `search=` expression:
226+
227+
+ For wildcard search, combine text with `*` or `?` wildcard characters
224228
+ For RegEx queries, enclose your pattern or term with `/`, such as `fieldCode:/SQL*Java-Ext/`
225229

226230
> [!NOTE]

0 commit comments

Comments
 (0)