Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3872150
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:53:39+00:00 2026-05-19T21:53:39+00:00

I have an index ‘colors’ with the following configuration: source colorsmain { type =

  • 0

I have an index ‘colors’ with the following configuration:

source colorsmain {
    type = mysql
    sql_host = 127.0.0.1
    sql_port = 3306
    sql_user = xxxx
    sql_pass = xxxx
    sql_db = showroom
    sql_query_range = SELECT MIN(id), MAX(id) from `colors`
    sql_range_step = 5000
    sql_query = SELECT id, affiliateproductid, h, s, b, w FROM colors WHERE id >= $start AND id <= $end
    sql_attr_uint = affiliateproductid
    sql_attr_uint = h
    sql_attr_uint = s
    sql_attr_uint = b
    sql_attr_uint = w
}
index colors {
    source = colorsmain
    path = /usr/local/etc/specifycolors
    docinfo = extern
    charset_type = utf-8
    mlock = 1
    preopen = 1
}

When I run indexer, however, it returns the following:

using config file '/usr/local/etc/sphinx.conf'...
indexing index 'colors'...
collected 335350 docs, 0.0 MB
total 335350 docs, 0 bytes
total 1.184 sec, 0 bytes/sec, 283034.47 docs/sec
total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 4 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg

The odd part is that when I comment out any one of the sql_attr_uint lines, it works just fine:

using config file '/usr/local/etc/sphinx.conf'...
indexing index 'colors'...
collected 335350 docs, 0.6 MB
sorted 0.3 Mhits, 100.0% done
total 335350 docs, 600998 bytes
total 1.428 sec, 420646 bytes/sec, 234715.82 docs/sec
total 2 reads, 0.011 sec, 4295.3 kb/call avg, 5.5 msec/call avg
total 7 writes, 0.017 sec, 2595.9 kb/call avg, 2.5 msec/call avg

I don’t see anything in the sphinx docs regarding a limit to the number of attributes, and the attributes all seem in work in various combinations as long as i don’t exceed 4 of them. Any advice?

I’m running sphinx 0.9.9-release (r2117) on Mac OS X 10.6.6

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T21:53:39+00:00Added an answer on May 19, 2026 at 9:53 pm

    Funny that just 5 minutes after I finally make the SO post, I discover the answer…

    Here it is: you must have at least one text column or sphinx will not index your data!
    Discussed in this thread http://sphinxsearch.com/forum/view.html?id=2867

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have index.php like this: <script type=text/javascript src=jquery-1.4.2.js></script> <script type=text/javascript src=ajax.js></script> <a href='one.php' class='ajax'>One</a>
I have a field of type BIT in my MySQL table. I want to
Considering the case, that I have the following menu: <ul> <li><a href=index.php>Index</a></li> <li><a href=about.php>About</a></li>
i am using php 5.2.8 i have index.html, which loads LOAD.PHP from IFRAME. iframe
I have an index view that I want to update automatically as the user
I have my index page which posts a single entry instead of the usual
I have an index page index.php , and when the user clicks on a
I have an index.html and global.css files. When I open these files at Coda,
I have a index.php file that will include several external files: content/templates/id1/template.php content/templates/id2/template.php content/templates/id3/template.php
I have an index page with three links as follws. When I click the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.