An error occurred while creating an index for sphenders using mysql as the data source.

Source: Internet
Author: User
This is sphworkflow. conf content sourcesrc1 {code ...}} this is my index Building command usrlocalsphinxbinindexer -- configusrlocalsphinxetcsphinx. conf -- all execution is always the result, Sphinx2.2.10-id64-release... this is sphworkflow. conf content
Source src1
{

    type                    = mysql    sql_host                = localhost    sql_user                = root    sql_pass                = 1goodlusslulU    sql_db                  = fangxinjia_sku    sql_port                = 3306  # optional, default is 3306    sql_query_pre        = SET NAMES utf8   # sql_query_pre        = SET SESSION query_cache_type=OFF    sql_query               = \            SELECT product_attribute_id,product_name \            FROM product_attribute    sql_attr_uint           = product_attribute_id    sql_attr_string         = product_name

}

This is my index creation command/usr/local/sphinx/bin/indexer -- config/usr/local/sphinx/etc/sphinx. conf -- all
This is the result after execution,

Sph20172.2.10-id64-release (2c212e0)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-2015, sphsf-technologies Inc (http://sphinxsearch.com)

Using config file '/usr/local/sphinx/etc/sphinx. Conf '...
Skipping non-plain index 'product _ attribute '...
Total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
Total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg

What are your questions? thank you.

There are files in the mysql database, and there is no error in the index execution fate, but there is no data

Reply content:

This is the content of sphexample. conf.
Source src1
{

    type                    = mysql    sql_host                = localhost    sql_user                = root    sql_pass                = 1goodlusslulU    sql_db                  = fangxinjia_sku    sql_port                = 3306  # optional, default is 3306    sql_query_pre        = SET NAMES utf8   # sql_query_pre        = SET SESSION query_cache_type=OFF    sql_query               = \            SELECT product_attribute_id,product_name \            FROM product_attribute    sql_attr_uint           = product_attribute_id    sql_attr_string         = product_name

}

This is my index creation command/usr/local/sphinx/bin/indexer -- config/usr/local/sphinx/etc/sphinx. conf -- all
This is the result after execution,

Sph20172.2.10-id64-release (2c212e0)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-2015, sphsf-technologies Inc (http://sphinxsearch.com)

Using config file '/usr/local/sphinx/etc/sphinx. Conf '...
Skipping non-plain index 'product _ attribute '...
Total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
Total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg

What are your questions? thank you.

There are files in the mysql database, and there is no error in the index execution fate, but there is no data

Index not configured

Index src1 {

source src1;…

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.