Skip to main content
Inspiring
December 19, 2017
Answered

Updating variables in search

  • December 19, 2017
  • 1 reply
  • 749 views

I have a lot of variables in my project and when I use the search feature it usually finds results based on old variable values. How can I update the project so that the search finds results with the current variable values?

This topic has been closed for replies.
Correct answer CN13579

It looks like the variable values are stored in the individual htm files and the only way I can see to update them is to open a topic and save it. We have over a thousand topics so that's far from practical. Anyone know how to get Robohelp to open each topic and update the variables automatically?


I got it to update the topics by using the Update DHTML function.

1 reply

Captiv8r
Legend
December 19, 2017

Where exactly are you searching?

Among the source files? Or is it happening when you search output?

Cheers... Rick

CN13579Author
Inspiring
December 19, 2017

Sorry. I should have been more specific. In the source files. For example, if I have a variable called "fruit" and the initial value is "apple", but I change it to "banana", when I search for "apple" it still shows up in the search results everywhere that the variable is used. When I open the topic from the search results, though, the correct value displays. There is a disparity between the search results and the actual topics. Is there a way to update the search index or however it finds the results so that it searches with the current variable values?

CN13579Author
Inspiring
December 19, 2017

It looks like the variable values are stored in the individual htm files and the only way I can see to update them is to open a topic and save it. We have over a thousand topics so that's far from practical. Anyone know how to get Robohelp to open each topic and update the variables automatically?