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?

  1. 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 only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

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

Recent Discussions