sphinx-searchHow to use sql_attr_float in SphinxSearch?
SphinxSearch provides the sql_attr_float
directive to index and search float values. This directive is used to define a float attribute in the index.
Example code
index test1
{
source = src1
sql_attr_float = price
}
The above code defines a float attribute named price
in the index test1
.
Code explanation
index test1
: This defines the index name.source = src1
: This defines the source of the data.sql_attr_float = price
: This defines the float attribute namedprice
.
Helpful links
More of Sphinx Search
- How to reload the configuration in SphinxSearch?
- How to query a specific index in SphinxSearch?
- How to use SphinxSearch with PHP?
- How to delete an index in SphinxSearch?
- How to offset results in SphinxSearch?
- How to get the version of SphinxSearch?
- How to configure memory usage in SphinxSearch?
- How to delete data from a realtime index in SphinxSearch?
- How to use query_log_format in SphinxSearch?
See more codes...