This commit is contained in:
Derek Legenzoff 2020-09-15 11:49:08 -07:00
Родитель 5ccbf3c31e 156f7b1a3c
Коммит 711221b480
32 изменённых файлов: 6595 добавлений и 29 удалений

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

@ -1,5 +1,5 @@
# Change Log
## [Unreleased]
## 0.1.0 - 2020-09-16
- Initial release

6453
NOTICE.html Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

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

@ -16,6 +16,10 @@ This VS Code extension makes it easy to manage your search service with the full
![Create index demo](resources/create-index.gif)
### Take advantage of rich intellisense
![Rich intellisense](resources/intellisense.gif)
### Edit or delete indexes, indexers, data sources, skillsets and synonym maps
![Delete index](resources/delete-index.gif)

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

@ -2,7 +2,7 @@
"name": "vscode-azurecognitivesearch",
"displayName": "Azure Cognitive Search",
"description": "Manage your Azure Cognitive Search services, create indexes, add documents, search, and more.",
"version": "0.0.3",
"version": "0.1.0",
"publisher": "ms-azuretools",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"license": "SEE LICENSE IN LICENSE.md",

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

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

После

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

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

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

До

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

После

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

Двоичные данные
resources/search.gif

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

До

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

После

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

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

@ -2798,13 +2798,13 @@
"x-ms-discriminator-value": "#Microsoft.Azure.Search.BM25Similarity",
"properties": {
"k1": {
"type": "number",
"type": ["number", "null"],
"format": "double",
"description": "This property controls the scaling function between the term frequency of each matching terms and the final relevance score of a document-query pair. By default, a value of 1.2 is used. A value of 0.0 means the score does not scale with an increase in term frequency.",
"x-nullable": true
},
"b": {
"type": "number",
"type": ["number", "null"],
"format": "double",
"description": "This property controls how the length of a document affects the relevance score. By default, a value of 0.75 is used. A value of 0.0 means no length normalization is applied, while a value of 1.0 means the score is fully normalized by the length of the document.",
"x-nullable": true

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

@ -110,7 +110,7 @@
"#Microsoft.Skills.Util.ShaperSkill",
"#Microsoft.Skills.Custom.WebApiSkill",
"#Microsoft.Skills.Custom.AmlSkill",
"Microsoft.Skills.Text.CustomEntityLookupSkill"
"#Microsoft.Skills.Custom.CustomEntityLookupSkill"
]
},
"name": {
@ -118,7 +118,7 @@
"description": "The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'."
},
"description": {
"type": "string",
"type": ["string", "null"],
"description": "The description of the skill which describes the inputs, outputs, and usage of the skill."
},
"context": {
@ -355,7 +355,7 @@
"description": "The source of the input."
},
"sourceContext": {
"type": "string",
"type": ["string", "null"],
"description": "The source context used for selecting recursive inputs."
},
"inputs": {
@ -405,7 +405,7 @@
"description": "A value indicating which language code to use. Default is en."
},
"maxKeyPhraseCount": {
"type": "integer",
"type": ["integer", "null"],
"format": "int32",
"x-nullable": true,
"description": "A number indicating how many key phrases to return. If absent, all identified key phrases will be returned."
@ -569,12 +569,12 @@
"description": "A value indicating which language code to use. Default is en."
},
"includeTypelessEntities": {
"type": "boolean",
"type": ["boolean", "null"],
"x-nullable": true,
"description": "Determines whether or not to include entities which are well known but don't conform to a pre-defined type. If this configuration is not set (default), set to null or set to false, entities which don't conform to one of the pre-defined types will not be surfaced."
},
"minimumPrecision": {
"type": "number",
"type": ["number", "null"],
"format": "double",
"x-nullable": true,
"description": "A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included."
@ -593,7 +593,7 @@
"description": "A value indicating which language code to use. Default is en."
},
"minimumPrecision": {
"type": "number",
"type": ["number", "null"],
"format": "double",
"x-nullable": true,
"description": "A value between 0 and 1 to indicate the confidence of the results."
@ -720,7 +720,7 @@
"description": "A value indicating which split mode to perform."
},
"maximumPageLength": {
"type": "integer",
"type": ["integer", "null"],
"format": "int32",
"x-nullable": true,
"description": "The desired maximum page length. Default is 10000."
@ -747,9 +747,6 @@
"description": "The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is en."
}
},
"required": [
"defaultToLanguageCode"
],
"externalDocs": {
"url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-text-translation"
},
@ -776,21 +773,18 @@
"description": "The desired timeout for the request. Default is 30 seconds."
},
"batchSize": {
"type": "integer",
"type": ["integer", "null"],
"format": "int32",
"x-nullable": true,
"description": "The desired batch size which indicates number of documents."
},
"degreeOfParallelism": {
"type": "integer",
"type": ["integer", "null"],
"format": "int32",
"x-nullable": true,
"description": "If set, the number of parallel calls that can be made to the Web API."
}
},
"required": [
"uri"
],
"externalDocs": {
"url": "https://docs.microsoft.com/azure/search/cognitive-search-custom-skill-web-api"
},
@ -891,13 +885,13 @@
"EntityCategory": {
"type": "string",
"enum": [
"location",
"organization",
"person",
"quantity",
"datetime",
"url",
"email"
"Location",
"Organization",
"Person",
"Quantity",
"DateTime",
"URL",
"Email"
],
"x-ms-enum": {
"name": "EntityCategory",
@ -1092,7 +1086,7 @@
},
"TextTranslationSkillLanguage": {
"type": ["string", "null"],
"enum": [
"examples": [
"af",
"ar",
"bn",
@ -1176,7 +1170,7 @@
"description": "The language codes supported for input by ImageAnalysisSkill."
},
"KnowledgeStore": {
"type": "object",
"type": ["object", "null"],
"description": "A storage account where you can optionally save your enriched documents.",
"properties": {
"storageConnectionString": {

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureAccountTreeItemBase, ISubscriptionContext } from "vscode-azureextensionui";
import { SubscriptionTreeItem } from "./SubscriptionTreeItem";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { SearchServiceTreeItem } from "./SearchServiceTreeItem";
import { SimpleSearchClient } from "./SimpleSearchClient";
import { SearchResourceListTreeItem } from "./SearchResourceListTreeItem";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as vscode from "vscode";
import * as os from "os";
import * as path from "path";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureParentTreeItem, IActionContext, AzExtTreeItem, ICreateChildImplContext } from "vscode-azureextensionui";
import { SimpleSearchClient, QueryResponse, Index, Field } from "./SimpleSearchClient";
import { IndexTreeItem } from "./IndexTreeItem";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureTreeItem, IActionContext } from "vscode-azureextensionui";
import { SimpleSearchClient, Index, Field } from "./SimpleSearchClient";
import { DocumentListTreeItem } from "./DocumentListTreeItem";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureTreeItem, AzureParentTreeItem, IActionContext } from "vscode-azureextensionui";
import { IDocumentRepository } from "./IDocumentRepository";
import { SimpleSearchClient } from "./SimpleSearchClient";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export interface IDocumentRepository {
readonly namePrefix: string;

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureParentTreeItem, IActionContext, AzExtTreeItem, GenericTreeItem, ICreateChildImplContext } from "vscode-azureextensionui";
import { SearchServiceTreeItem } from "./SearchServiceTreeItem";
import { SimpleSearchClient, Index } from "./SimpleSearchClient";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureParentTreeItem, IActionContext, AzExtTreeItem, GenericTreeItem } from "vscode-azureextensionui";
import { SearchServiceTreeItem } from "./SearchServiceTreeItem";
import { SimpleSearchClient, Index } from "./SimpleSearchClient";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { SearchServiceTreeItem } from "./SearchServiceTreeItem";
import { SimpleSearchClient } from "./SimpleSearchClient";
import { SearchResourceListTreeItem } from "./SearchResourceListTreeItem";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureParentTreeItem, IActionContext, AzExtTreeItem, ICreateChildImplContext } from "vscode-azureextensionui";
import { SearchServiceTreeItem } from "./SearchServiceTreeItem";
import { SimpleSearchClient } from "./SimpleSearchClient";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as vscode from "vscode";
export class SearchResultDocumentProvider implements vscode.TextDocumentContentProvider {

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureParentTreeItem, IActionContext, AzExtTreeItem, GenericTreeItem } from "vscode-azureextensionui";
import { isNullOrUndefined } from "util";
import { SearchService } from "azure-arm-search/lib/models";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { AzureTreeItem, AzureParentTreeItem } from "vscode-azureextensionui";
import { IDocumentRepository } from "./IDocumentRepository";
import { SearchService } from "azure-arm-search/lib/models";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import Axios, { AxiosResponse, AxiosRequestConfig } from "axios";
import { appendExtensionUserAgent } from "vscode-azureextensionui";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { SearchServiceTreeItem } from "./SearchServiceTreeItem";
import { SimpleSearchClient } from "./SimpleSearchClient";
import { SearchResourceListTreeItem } from "./SearchResourceListTreeItem";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { SearchManagementClient } from 'azure-arm-search';
import { ResourceManagementClient } from 'azure-arm-resource';
import { SearchService } from 'azure-arm-search/lib/models';

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { SearchServiceTreeItem } from "./SearchServiceTreeItem";
import { SimpleSearchClient } from "./SimpleSearchClient";
import { SearchResourceListTreeItem } from "./SearchResourceListTreeItem";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ExtensionContext, TreeView } from "vscode";
import { AzExtTreeDataProvider, AzExtTreeItem, IAzExtOutputChannel, IAzureUserInput } from "vscode-azureextensionui";
import TelemetryReporter from "vscode-extension-telemetry";

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as path from 'path';
import { runTests } from 'vscode-test';

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as assert from 'assert';
// You can import and use all API from the 'vscode' module

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

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as path from 'path';
import * as Mocha from 'mocha';
import * as glob from 'glob';