adding gifs to docs and fix to search feature

This commit is contained in:
Derek Legenzoff 2020-08-27 15:18:48 -07:00
Родитель c2f5c14597
Коммит cb78449f63
7 изменённых файлов: 56 добавлений и 31 удалений

Просмотреть файл

@ -8,12 +8,33 @@ This VS Code extension makes it easy to manage your search service, create and u
## Features
* Browse all of your Azure Cognitive Search services
* Create new indexes, indexers, data sources, skillsets and synonym maps
### Browse all of your Azure Cognitive Search services
![Overview of the extension](resources/overview.png)
### Create new indexes, indexers, data sources, skillsets and synonym maps
![Create index demo](resources/create-index.gif)
* Edit or delete indexes, indexers, data sources, skillsets and synonym maps
* Add or update documents in the search index
* Query your search services
### Edit or delete indexes, indexers, data sources, skillsets and synonym maps
![Delete index](rsources/delete-index.gif)
### Add or update documents in the search index
![Add of update documents](resources/add-document.gif)
### Query your search services
## Managing Azure Subscriptions
If you are not signed in to Azure, you will see a "Sign in to Azure..." link. Alternatively, you can select "View->Command Palette" in the VS Code menu, and search for "Azure: Sign In".
If you don't have an Azure Account, you can sign up for one today for free and receive $200 in credits by selecting "Create a Free Azure Account..." or selecting "View->Command Palette" and searching for "Azure: Create an Account".
You may sign out of Azure by selecting "View->Command Palette" and searching for "Azure: Sign Out".
To select which subscriptions show up in the extension's explorer, click on the "Select Subscriptions..." button on any subscription node (indicated by a "filter" icon when you hover over it), or select "View->Command Palette" and search for "Azure: Select Subscriptions". Note that this selection affects all VS Code extensions that support the [Azure Account and Sign-In](https://github.com/Microsoft/vscode-azure-account) extension.
## Contributing

Двоичные данные
media/AzureSearch.png

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 44 KiB

После

Ширина:  |  Высота:  |  Размер: 42 KiB

Просмотреть файл

@ -26,8 +26,12 @@
},
"repository": {
"type": "git",
"url": "https://github.com/pablocastro/vscode-azuresearch"
"url": "https://github.com/microsoft/vscode-azurecognitivesearch"
},
"bugs": {
"url": "https://github.com/microsoft/vscode-azurecognitivesearch/issues"
},
"homepage": "https://github.com/microsoft/vscode-azurecognitivesearch",
"icon": "media/AzureSearch.png",
"preview": true,
"activationEvents": [
@ -98,7 +102,7 @@
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
},
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.search",
@ -107,12 +111,12 @@
"light": "resources/light/search.svg",
"dark": "resources/dark/search.svg"
},
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.openInPortal",
"title": "Open in Portal",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.selectSubscriptions",
@ -121,7 +125,7 @@
"light": "resources/light/filter.svg",
"dark": "resources/dark/filter.svg"
},
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.createDocument",
@ -130,72 +134,72 @@
"light": "resources/light/add.svg",
"dark": "resources/dark/add.svg"
},
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.deleteDocument",
"title": "Delete document",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.createDataSource",
"title": "Create new data source",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.deleteDataSource",
"title": "Delete data source",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.createIndexer",
"title": "Create new indexer",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.openSearchEditor",
"title": "Search index",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.deleteIndex",
"title": "Delete index",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.createIndex",
"title": "Create new index",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.deleteIndexer",
"title": "Delete indexer",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.createSkillset",
"title": "Create new skillset",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.deleteSkillset",
"title": "Delete skillset",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.createSynonymMap",
"title": "Create new synonym map",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.deleteSynonymMap",
"title": "Delete synonym map",
"category": "Azure Search"
"category": "Azure Cognitive Search"
},
{
"command": "azureCognitiveSearch.searchDoc",
"title": "Search",
"category": "Azure Search"
"category": "Azure Cognitive Search"
}
],
"menus": {
@ -332,12 +336,12 @@
]
},
"configuration": {
"title": "Azure Search Services",
"title": "Azure Cognitive Search Services",
"properties": {
"azureCognitiveSearch.showExplorer": {
"type": "boolean",
"default": true,
"description": "Show or hide the Azure Search Explorer"
"description": "Show or hide the Azure Cognitive Search Explorer"
}
}
},
@ -381,7 +385,7 @@
"command": "azureCognitiveSearch.searchDoc",
"key": "ctrl+alt+r",
"mac": "cmd+alt+r",
"when": "editorLangId == azureCognitiveSearch"
"when": "editorLangId == azurecognitivesearch"
}
]
},

Двоичные данные
resources/add-document.gif Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 1.1 MiB

Двоичные данные
resources/delete-index.gif Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 331 KiB

Двоичные данные
resources/overview.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 138 KiB

Просмотреть файл

@ -148,7 +148,7 @@ async function search(treeItem: AzExtTreeItem, actionContext: IActionContext, do
indexItem = <IndexTreeItem>await ext.tree.showTreeItemPicker(IndexTreeItem.contextValue, actionContext);
}
let query = await ext.ui.showInputBox({ placeHolder: "search=....&$filter=...", prompt: "Enter an Azure Search query string. You can use search, $filter, $top, etc." });
let query = await ext.ui.showInputBox({ placeHolder: "search=....&$filter=...", prompt: "Enter an Azure Cognitive Search query string. You can use search, $filter, $top, etc." });
const result = await indexItem.search(query);
const id = documentProvider.registerContent(JSON.stringify(result, undefined, 4));
const doc = await vscode.workspace.openTextDocument(vscode.Uri.parse(`search:${id}`));
@ -187,7 +187,7 @@ async function openSearchEditor(treeItem: IndexTreeItem): Promise<void> {
await fse.writeFile(localPath, template);
const doc = await vscode.workspace.openTextDocument(localPath);
vscode.languages.setTextDocumentLanguage(doc, "azs");
vscode.languages.setTextDocumentLanguage(doc, "azurecognitivesearch");
await vscode.window.showTextDocument(doc);
ext.treeView.reveal(treeItem, {select: true})
@ -203,11 +203,11 @@ async function searchToDocument(editor: vscode.TextEditor, root: AzExtTreeItem,
}
if (ext.treeView.selection.length === 0) {
ext.ui.showWarningMessage("Select an Azure Search index from the left panel.");
ext.ui.showWarningMessage("Select an Azure Cognitive Search index from the left panel.");
await ext.treeView.reveal(root, { expand: true });
}
else if (ext.treeView.selection[0].contextValue !== "azureCognitiveSearchIndex") {
ext.ui.showWarningMessage("Select an Azure Search index from the left panel.");
ext.ui.showWarningMessage("Select an Azure Cognitive Search index from the left panel.");
}
else {
const indexItem = <IndexTreeItem>ext.treeView.selection[0];