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 use phrase_boundary in SphinxSearch?
- How to restart SphinxSearch?
- How to use regexp_filter in SphinxSearch?
- How to delete data from a realtime index in SphinxSearch?
- How to use SphinxSearch with Node.js?
- How to use the SphinxSearch indexer command?
- How to configure max_children in SphinxSearch?
- How to use forward slash in SphinxSearch?
- How to use sql_attr_json in SphinxSearch?
- How to delete an index in SphinxSearch?
See more codes...