How to dynamically manage wordform contents?

David Fawcett's Avatar

David Fawcett

10 Mar, 2020 06:57 PM

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?

  1. Support Staff 1 Posted by Pat Allan on 15 Mar, 2020 06:11 AM

    Pat Allan's Avatar

    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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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