Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8209863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:52:37+00:00 2026-06-07T09:52:37+00:00

I am trying to implement a sphinx search server on a website. The website

  • 0

I am trying to implement a sphinx search server on a website. The website is to be used for internal tracking.

The database defines a status, which I have configured to be a attribute in sphinx. I need this to be updated in real time without any lag. I also want to use disk indexes so regular updates to the index can be done quite easily and I avoid the SphinxQL.

I have found that this is possible via the UpdateAttribute method of the sphinx API.
What I want to know is if it is possible to call the UpdateAttribute() from a MySQL trigger? I thought I could have a php script that takes the required inputs in a get request and then updates the index. Please suggest possible ways to implement as I haven’t yet found anything that works.

If you have any other way of implementing the search so that I get attributes updated in real time then please let me know.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:52:39+00:00Added an answer on June 7, 2026 at 9:52 am

    UpdateAttribute is the right method.

    IMO it is possible to call this method in MySQL trigger using MySQL user defined function. But, I don’t think it is good solution, because such function will be very complex and will slow down mysql updates very much.

    A much better solution was posted to the sphinxforums. Its using gearman and the present UDFs that exists for it. (technically writing UDF for the sphinx C API is better but this is just easier) see here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to implement some code i found on a website which duplicates a
I am trying implement a search activity which gets data from a mysql table
I'm trying to implement thinking-sphinx across multiple 'sites' hosted under a single rails application.
I'm trying implement A* Start path finding in my games(which are written with JavaScript,
Trying to implement a search similar to here .This searches properties based on city,locality,property
Trying to implement the signature verification of inapp billing on my server (Django/Python). I
Trying to implement search with Sunspot Gem wich is using Solr.Fulltext search works fine
Trying to implement NSCopying for the first time, and I have a question about
I have this weird kind of error. I am trying implement basic Euclidean algorithm
Trying to implement what I thought was a simple concept. I have a user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.