I have an Umbraco 8.17.1 site, where I created a custom index, which retrieves data from a company database. Now I'm trying to upgrade to Umbraco 9 and .Net 5, but I can't find any documentation on creating indexes in this new version of Umbraco as it seems to have changed a lot.
I found documentation on customizing the external index, but none on creating a new custom index as needed.
Can anyone provide me with some documentation or some general guidelines for creating a new custom index, sourced from data from an external database? Teh code that I had that worked in Umbraco 8.17.1 does not anymore... some interfaces and/or classes do not seem to exist anymore (e.g. LuceneIndexCreator, IUmbracoIndexesCreator)
Thanks for your feedback... been tied up with other things.
I had already look at the link you sent, but was not capable of get it to fetch items from an external database.
There is not much documentation regarding PerformIndexItems or IndexItems, so I do not know what is does, nor how can I get it to fetch data from an external source.
You can look into this repository: https://github.com/Adolfi/UmbracoNineDemoSite
We built a couple of examples how to use Examine in Umbraco 9, including external source data in indexes.
How to create an index in Umbraco v9
Hi
I have an Umbraco 8.17.1 site, where I created a custom index, which retrieves data from a company database. Now I'm trying to upgrade to Umbraco 9 and .Net 5, but I can't find any documentation on creating indexes in this new version of Umbraco as it seems to have changed a lot.
I found documentation on customizing the external index, but none on creating a new custom index as needed.
Can anyone provide me with some documentation or some general guidelines for creating a new custom index, sourced from data from an external database? Teh code that I had that worked in Umbraco 8.17.1 does not anymore... some interfaces and/or classes do not seem to exist anymore (e.g. LuceneIndexCreator, IUmbracoIndexesCreator)
Thanks in advance.
Regards
Jorge
Hi Jorge,
I haven't tried it in v9 yet, but i came across this blogpost that might help you to get started: how-to-create-a-custom-index-in-umbraco-v9
Hi Erik
Thanks for your feedback... been tied up with other things. I had already look at the link you sent, but was not capable of get it to fetch items from an external database. There is not much documentation regarding PerformIndexItems or IndexItems, so I do not know what is does, nor how can I get it to fetch data from an external source.
Same issue. So frustrating trying to do anything in Umbraco 9. The docs are awful
Hi Jorge.
You can look into this repository: https://github.com/Adolfi/UmbracoNineDemoSite We built a couple of examples how to use Examine in Umbraco 9, including external source data in indexes.
Hopefully it'll be useful for you.
This is fantastic thank you.
is working on a reply...