php - Adding documents to Sphinx index and modifying their attributes without full rebuild -


i have wordpress-based website uses sphinx search engine, usual cron job rebuilding sphinx index every n hours accessing site's mysql database. works fine except when post created or edited - in case, until time comes rebuild index, remains unindexed or indexed obsolete attributes.

according sphinx php api documentation updating of indexed documents allowed , there apparently no way of adding new document index without rebuilding scratch or merging delta one. there no way remove document index well.

besides, peeking updateattributes source code reveals numeric attributes allowed update (other types filtered out assertion). makes me think updating index on fly isn't welcomed sphinx developers.

are there ways around solve problem , modify index not on schedule on demand particular documents? or bad practice sphinx, , using updated delta index merged main 1 acceptable solution if there single document update?

thanks in advance.

you can try sphinx real time indexes (http://sphinxsearch.com/docs/current.html#rt-overview) add 1 single document existing index without rebuilding whole index.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -