How to dynamically manage wordform contents?
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?
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Pat Allan on 15 Mar, 2020 06:11 AM
Hi David,
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.
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.
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 :)
Cheers,
Pat