@@ -520,113 +520,113 @@ The index schema in this example is organized around hotel content. Sample data
520
520
521
521
1. Select **Send request**. You should have an `HTTP/1.1 201 Created` response.
522
522
523
- ***
523
+ ---
524
524
525
525
The response body should include the JSON representation of the index schema.
526
526
527
- ```json
527
+ ```json
528
+ {
529
+ "@odata.context": "https://contoso-search-centralus.search.windows.net/$metadata#indexes/$entity",
530
+ "@odata.etag": "\"0x8DD2E70E6C36D8E\"",
531
+ "name": "hotels-vector-quickstart",
532
+ "defaultScoringProfile": null,
533
+ "fields": [
528
534
{
529
- "@odata.context": "https://contoso-search-centralus.search.windows.net/$metadata#indexes/$entity",
530
- "@odata.etag": "\"0x8DD2E70E6C36D8E\"",
531
- "name": "hotels-vector-quickstart",
532
- "defaultScoringProfile": null,
533
- "fields": [
535
+ "name": "HotelId",
536
+ "type": "Edm.String",
537
+ "searchable": false,
538
+ "filterable": true,
539
+ "retrievable": true,
540
+ "sortable": false,
541
+ "facetable": false,
542
+ "key": true,
543
+ "indexAnalyzer": null,
544
+ "searchAnalyzer": null,
545
+ "analyzer": null,
546
+ "dimensions": null,
547
+ "vectorSearchProfile": null,
548
+ "synonymMaps": []
549
+ },
550
+ [MORE FIELD DEFINITIONS OMITTED FOR BREVITY]
551
+ ],
552
+ "scoringProfiles": [],
553
+ "corsOptions": null,
554
+ "suggesters": [],
555
+ "analyzers": [],
556
+ "tokenizers": [],
557
+ "tokenFilters": [],
558
+ "charFilters": [],
559
+ "encryptionKey": null,
560
+ "similarity": {
561
+ "@odata.type": "#Microsoft.Azure.Search.BM25Similarity",
562
+ "k1": null,
563
+ "b": null
564
+ },
565
+ "vectorSearch": {
566
+ "algorithms": [
534
567
{
535
- "name": "HotelId",
536
- "type": "Edm.String",
537
- "searchable": false,
538
- "filterable": true,
539
- "retrievable": true,
540
- "sortable": false,
541
- "facetable": false,
542
- "key": true,
543
- "indexAnalyzer": null,
544
- "searchAnalyzer": null,
545
- "analyzer": null,
546
- "dimensions": null,
547
- "vectorSearchProfile": null,
548
- "synonymMaps": []
568
+ "name": "my-hnsw-vector-config-1",
569
+ "kind": "hnsw",
570
+ "hnswParameters": {
571
+ "metric": "cosine",
572
+ "m": 4,
573
+ "efConstruction": 400,
574
+ "efSearch": 500
549
575
},
550
- [MORE FIELD DEFINITIONS OMITTED FOR BREVITY]
551
- ],
552
- "scoringProfiles": [],
553
- "corsOptions": null,
554
- "suggesters": [],
555
- "analyzers": [],
556
- "tokenizers": [],
557
- "tokenFilters": [],
558
- "charFilters": [],
559
- "encryptionKey": null,
560
- "similarity": {
561
- "@odata.type": "#Microsoft.Azure.Search.BM25Similarity",
562
- "k1": null,
563
- "b": null
564
- },
565
- "vectorSearch": {
566
- "algorithms": [
567
- {
568
- "name": "my-hnsw-vector-config-1",
569
- "kind": "hnsw",
570
- "hnswParameters": {
571
- "metric": "cosine",
572
- "m": 4,
573
- "efConstruction": 400,
574
- "efSearch": 500
575
- },
576
- "exhaustiveKnnParameters": null
577
- },
578
- {
579
- "name": "my-hnsw-vector-config-2",
580
- "kind": "hnsw",
581
- "hnswParameters": {
582
- "metric": "euclidean",
583
- "m": 4,
584
- "efConstruction": 400,
585
- "efSearch": 500
576
+ "exhaustiveKnnParameters": null
577
+ },
578
+ {
579
+ "name": "my-hnsw-vector-config-2",
580
+ "kind": "hnsw",
581
+ "hnswParameters": {
582
+ "metric": "euclidean",
583
+ "m": 4,
584
+ "efConstruction": 400,
585
+ "efSearch": 500
586
+ },
587
+ "exhaustiveKnnParameters": null
588
+ },
589
+ {
590
+ "name": "my-eknn-vector-config",
591
+ "kind": "exhaustiveKnn",
592
+ "hnswParameters": null,
593
+ "exhaustiveKnnParameters": {
594
+ "metric": "cosine"
595
+ }
596
+ }
597
+ ],
598
+ "profiles": [
599
+ {
600
+ "name": "my-vector-profile",
601
+ "algorithm": "my-hnsw-vector-config-1"
602
+ }
603
+ ]
604
+ },
605
+ "semantic": {
606
+ "defaultConfiguration": null,
607
+ "configurations": [
608
+ {
609
+ "name": "my-semantic-config",
610
+ "prioritizedFields": {
611
+ "titleField": {
612
+ "fieldName": "HotelName"
586
613
},
587
- "exhaustiveKnnParameters": null
588
- },
589
- {
590
- "name": "my-eknn-vector-config",
591
- "kind": "exhaustiveKnn",
592
- "hnswParameters": null,
593
- "exhaustiveKnnParameters": {
594
- "metric": "cosine"
614
+ "prioritizedContentFields": [
615
+ {
616
+ "fieldName": "Description"
595
617
}
596
- }
597
- ],
598
- "profiles": [
599
- {
600
- "name": "my-vector-profile",
601
- "algorithm": "my-hnsw-vector-config-1"
602
- }
603
- ]
604
- },
605
- "semantic": {
606
- "defaultConfiguration": null,
607
- "configurations": [
608
- {
609
- "name": "my-semantic-config",
610
- "prioritizedFields": {
611
- "titleField": {
612
- "fieldName": "HotelName"
613
- },
614
- "prioritizedContentFields": [
615
- {
616
- "fieldName": "Description"
617
- }
618
- ],
619
- "prioritizedKeywordsFields": [
620
- {
621
- "fieldName": "Category"
622
- }
623
- ]
618
+ ],
619
+ "prioritizedKeywordsFields": [
620
+ {
621
+ "fieldName": "Category"
624
622
}
625
- }
626
- ]
627
- }
623
+ ]
624
+ }
625
+ }
626
+ ]
628
627
}
629
- ```
628
+ }
629
+ ```
630
630
631
631
Key takeaways about the [ Create Index] ( /rest/api/searchservice/indexes/create ) REST API:
632
632
0 commit comments