Indexy allows a developer to effortlessly create custom Examine indexes within Umbraco by simply adding a few options to the website appsettings.json
file.
Because good names are hard to come by. 🙃
Simply search for the Our.Umbraco.Indexy
NuGet package and add it to your project.
dotnet add package Our.Umbraco.Indexy
{
"Our.Umbraco.Indexy": {
"Groups": [
{
"IndexName": "BlogsIndex",
"DocumentTypes": "article",
"Fields": {
"SystemFields": "",
"FullText": "authorName",
"DateTime": "articleDate",
"Integer": "",
"Float": "",
"Double": "",
"Long": "",
"DateYear": "",
"DateMonth": "",
"DateDay": "",
"DateHour": "",
"DateMinute": "",
"Raw": "",
"FullTextSortable": "",
"InvariantCultureIgnoreCase": "",
"EmailAddress": ""
}
}
]
}
}
Id
and nodeName
fields are automatically added. Default value: __Icon,__Key,__Path,__Published,__VariesByCulture,createDate,creatorID,creatorName,email,icon,level,nodeType,parentID,path,sortOrder,template,templateID,updateDate,urlName,version,writerID,writerName
This plugin is designed to make available custom indexes for usage within your own code. However for your reference, as an example you can call this by doing the following:
_examineManager.TryGetIndex("BlogsIndex", out IIndex? index)
More information and helpful examples can be found here: https://our.umbraco.com/documentation/reference/searching/examine/quick-start/#creating-the-search-query
You're more than welcome to fork and do a pull request.
Please report them on the issues tab of this repository.