ERROR: index 'products': too many string attributes (current index format allows up to 4 GB)

本小妞迷上赌 提交于 2019-12-12 01:27:54

问题


Got this when tried to index table in database with 25GB of data. Sphinx contains index declaration with following fields:

sql_field_string    = field_indexer #some keywords
sql_field_string    = product_name
sql_field_string    = description
sql_attr_float      = price
sql_field_string    = product_url
sql_field_string    = image_url
sql_field_string    = sku
sql_attr_uint       = merchant_id
sql_attr_uint       = network_id     

All of them must be indexed.
How solve this problem?

Multiple indexes or distributed indexes are really painful solutions.


回答1:


There is no solution for your problem for now.

There are several workarounds:

  • use distributed index
  • make your attrs full text fields (but it makes them "unselectable")
  • search in sphinx and query to database for this attrs (2 queries with all disadvantages)

You can choose less painful workaround or switch to another search engine...



来源:https://stackoverflow.com/questions/30308856/error-index-products-too-many-string-attributes-current-index-format-allows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!