Created
December 17, 2020 12:30
-
-
Save ThorstenHans/47dd29951a5c0c35272a00500ef8db83 to your computer and use it in GitHub Desktop.
Azure Cognitive Search - Index Definiton
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "blog-index", | |
"fields": [ | |
{ | |
"name": "id", | |
"type": "Edm.String", | |
"facetable": false, | |
"filterable": false, | |
"key": true, | |
"retrievable": true, | |
"searchable": false, | |
"sortable": false, | |
"analyzer": null, | |
"indexAnalyzer": null, | |
"searchAnalyzer": null, | |
"synonymMaps": [], | |
"fields": [] | |
}, | |
{ | |
"name": "title", | |
"type": "Edm.String", | |
"facetable": false, | |
"filterable": true, | |
"key": false, | |
"retrievable": true, | |
"searchable": true, | |
"sortable": false, | |
"analyzer": "standard.lucene", | |
"indexAnalyzer": null, | |
"searchAnalyzer": null, | |
"synonymMaps": [], | |
"fields": [] | |
}, | |
{ | |
"name": "description", | |
"type": "Edm.String", | |
"facetable": false, | |
"filterable": false, | |
"key": false, | |
"retrievable": true, | |
"searchable": true, | |
"sortable": false, | |
"analyzer": "standard.lucene", | |
"indexAnalyzer": null, | |
"searchAnalyzer": null, | |
"synonymMaps": [], | |
"fields": [] | |
}, | |
{ | |
"name": "content", | |
"type": "Edm.String", | |
"facetable": false, | |
"filterable": false, | |
"key": false, | |
"retrievable": true, | |
"searchable": true, | |
"sortable": false, | |
"analyzer": "standard.lucene", | |
"indexAnalyzer": null, | |
"searchAnalyzer": null, | |
"synonymMaps": [], | |
"fields": [] | |
}, | |
{ | |
"name": "url", | |
"type": "Edm.String", | |
"facetable": false, | |
"filterable": false, | |
"key": false, | |
"retrievable": true, | |
"searchable": true, | |
"sortable": false, | |
"analyzer": "standard.lucene", | |
"indexAnalyzer": null, | |
"searchAnalyzer": null, | |
"synonymMaps": [], | |
"fields": [] | |
}, | |
{ | |
"name": "pubDate", | |
"type": "Edm.DateTimeOffset", | |
"facetable": true, | |
"filterable": true, | |
"retrievable": true, | |
"sortable": true, | |
"analyzer": null, | |
"indexAnalyzer": null, | |
"searchAnalyzer": null, | |
"synonymMaps": [], | |
"fields": [] | |
}, | |
{ | |
"name": "tags", | |
"type": "Collection(Edm.String)", | |
"facetable": true, | |
"filterable": true, | |
"retrievable": true, | |
"searchable": true, | |
"analyzer": "standard.lucene", | |
"indexAnalyzer": null, | |
"searchAnalyzer": null, | |
"synonymMaps": [], | |
"fields": [] | |
} | |
], | |
"suggesters": [], | |
"scoringProfiles": [ | |
{ | |
"name": "boostRecent", | |
"functions": [ | |
{ | |
"type": "freshness", | |
"fieldName": "pubDate", | |
"interpolation": "quadratic", | |
"boost": 3, | |
"freshness": { | |
"boostingDuration": "P365D" | |
} | |
} | |
], | |
"functionAggregation": null, | |
"text": { | |
"weights": { | |
"title": 5, | |
"description": 3, | |
"tags": 2, | |
"content": 2 | |
} | |
} | |
} | |
], | |
"defaultScoringProfile": "", | |
"corsOptions": null, | |
"analyzers": [], | |
"charFilters": [], | |
"tokenFilters": [], | |
"tokenizers": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment