Skip to content

Commit 67c126f

Browse files
committed
Add debugging tips
1 parent fb6f5e4 commit 67c126f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/data_ingestion.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The chat app provides two ways to ingest data: manual indexing and integrated ve
1414
- [Indexing of additional documents](#indexing-of-additional-documents)
1515
- [Removal of documents](#removal-of-documents)
1616
- [Scheduled indexing](#scheduled-indexing)
17+
- [Debugging tips](#debugging-tips)
1718

1819
## Manual indexing process
1920

@@ -101,3 +102,30 @@ The Azure AI Search indexer will take care of removing those documents from the
101102
### Scheduled indexing
102103

103104
If you would like the indexer to run automatically, you can set it up to [run on a schedule](https://learn.microsoft.com/azure/search/search-howto-schedule-indexers).
105+
106+
## Debugging tips
107+
108+
If you are not sure if a file successfully uploaded, you can query the index from the Azure Portal or from the REST API. Open the index and paste the queries below into the search bar.
109+
110+
To see all the filenames uploaded to the index:
111+
112+
```json
113+
{
114+
"search": "*",
115+
"count": true,
116+
"top": 1,
117+
"facets": ["sourcefile"]
118+
}
119+
```
120+
121+
To search for specific filenames:
122+
123+
```json
124+
{
125+
"search": "*",
126+
"count": true,
127+
"top": 1,
128+
"filter": "sourcefile eq '209884Orig1s000RiskR.pdf'",
129+
"facets": ["sourcefile"]
130+
}
131+
```

0 commit comments

Comments
 (0)