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 order search results by relevance in SphinxSearch?
- How to specify stop words in SphinxSearch?
- How to use the MySQL protocol in SphinxSearch?
- How to get the version of SphinxSearch?
- How to use SphinxSearch with PHP?
- How to use regexp_filter in SphinxSearch?
- How to use query_log_format in SphinxSearch?
- How to configure max_children in SphinxSearch?
- How to use forward slash in SphinxSearch?
See more codes...