sphinx-searchHow to create a delta index in SphinxSearch?
Creating a delta index in SphinxSearch is a two-step process.
- Create a main index and a delta index.
index main
{
type = plain
path = /var/data/main
}
index delta
{
type = delta
path = /var/data/delta
# main index to which delta index will be merged
# after indexing
# mandatory
main = main
}
- Merge the delta index with the main index.
indexer --merge main delta --merge-dst-range deleted 0 0
The --merge
option tells Sphinx to merge the delta index with the main index. The --merge-dst-range
option tells Sphinx to mark all documents in the delta index as deleted in the main index.
Helpful links
More of Sphinx Search
- How to use phrase_boundary in SphinxSearch?
- How to order search results by relevance in SphinxSearch?
- How to use regexp_filter in SphinxSearch?
- How to delete data from a realtime index in SphinxSearch?
- How to use SphinxSearch with PHP?
- How to configure memory usage in SphinxSearch?
- How to use sql_attr_float in SphinxSearch?
- How to use sql_attr_timestamp in SphinxSearch?
- How to query a specific index in SphinxSearch?
- How to reload the configuration in SphinxSearch?
See more codes...