tag:support.flying-sphinx.com,2011-01-05:/discussions/questions/1518-how-to-dynamically-manage-wordform-contentsFlying Sphinx: Discussion 2020-03-15T06:11:33Ztag:support.flying-sphinx.com,2011-01-05:Comment/481486212020-03-10T18:57:25Z2020-03-10T18:57:27ZHow to dynamically manage wordform contents?<div><p>Hey there, short of manually updating the wordform file on a deploy and rebuilding index, is there a better way to update wordforms on flyingsphinx? More on the fly? eg: have the wordform updates come from a form submission, update wordforms in db, trigger the rebuild which takes into account the new wordforms?</p></div>David Fawcetttag:support.flying-sphinx.com,2011-01-05:Comment/481486212020-03-15T06:11:32Z2020-03-15T06:11:32ZHow to dynamically manage wordform contents?<div><p>Hi David,</p>
<p>This is indeed technically possible - you can interact with Sphinx and the Flying Sphinx API within code, so I'm happy to talk through how this is possible, if you let me know which language your app is using.</p>
<p>However, it's worth noting - at least with Thinking Sphinx and Ruby - that normal rebuilding calls will overwrite the existing configuration each time. So, you'd need to ensure that the index configuration for your app sources the wordforms dynamically in the same manner that any later submissions of new wordforms would use.</p>
<p>Happy to dive a bit deeper with this, but if you could let me know what library/language you're using so I can provide more directly relevant suggestions, that'd be great :)</p>
<p>Cheers,</p>
<p>Pat</p></div>Pat Allan