Developer forum

Forum » Rapido » Adding to a Index

Adding to a Index

Daniel Hollmann
Reply

Hi DW.

I have a index that I have build with the inbuilt indexing Module (https://doc.dynamicweb.com/documentation-9/indexing)

I have one for my users, and one for a custom entity that I have created.
For my custom entity, the index build triggers every 5 minute, using the inbuilt task scheduler.

That works fine, but recently I had a request from my client that the want this update more frequently.
The building for the index take around 2-3 minuttes to build, so I won't gain that much by making something that triggers the function
using the url. However I notice that for my user index, I had options to run builder action "update" and "updates with ID's" while I
only have the option to use the "Execute" Builder Action for my custom entity.

What I want is to add to the index, either by a update Builder Action or something else that can insert and newly created entity to my index, without having to build the index again, which takes around 2-3 minuttes.
So is there any way to add to a index, or run a update function to a index, without triggering a rebuild? Or is there a smarter way to achieve what I want?

Thanks Daniel


Replies

 
Nicolai Pedersen
Reply

It is only entity specific builders that has update with ids feature, I.e. product index builder and user index builder. If you need that for your custom entity, you would have to build a custom entity builder that will understand a builder action that does updates.

 
Daniel Hollmann
Reply

Thanks for the answer Nicolai.

Is there any examples/documentation on extending a index in DynamicWeb I can look at? I haven't been able to find anything..

 
Nicolai Pedersen
 
Daniel Hollmann
Reply

Thank you :)

 

You must be logged in to post in the forum