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 6663209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:28:26+00:00 2026-05-26T02:28:26+00:00

I Can’t answer my own question yet, so here is the answer I’m an

  • 0

I Can’t answer my own question yet, so here is the answer

I’m an idiot… didn’t reindex every time.

searchd --stop
indexer --all
searchd

Problem solved. Sorry for wasting anyone’s time 🙁 Hope this helps someone.

** End of answer **

I have a PHP model running a Query against an indexed table (call it SONGS).

The query in the sphinx.conf is as follows:

sql_query       = \
    SELECT \
    songs.id AS song_id, \
    songs.title AS song_title, \
    songs.upload_stamp AS song_published, \
    songs.uri AS song_uri, \
    songs.artist_id, \
    songs.song_rank, \
    songs.vote_count \
    FROM songs

However, when i run the code to execute the query, the resulting array only contains the 2 fields song_published & artist_id, and is missing the other 6 fields.

The php code looks as follows:

$this->cl->SetMatchMode(SPH_MATCH_ALL);
$this->cl->SetConnectTimeout ( 1 );
$this->cl->SetArrayResult ( true );
$this->cl->SetWeights ( array ( 100, 1 ) );

$result = $this->cl->Query($this->search_term,'song-index');

I’ve tried a multitude of things, and restarted searchd (edit and reindexed) each time to no avail.. it is returning the correct results, but only 2 of the 8 fields in the resulting array.

Any help would be MUCH appreciated!!!!

EDIT…

Here are the declarations for the values as well

sql_attr_uint       = artist_id
sql_attr_uint       = song_id
sql_attr_uint       = vote_count
sql_attr_timestamp  = song_published
sql_attr_float      = song_rank
sql_attr_string     = song_uri
sql_attr_string     = song_title
  • 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-26T02:28:27+00:00Added an answer on May 26, 2026 at 2:28 am

    I’m an idiot… didn’t reindex every time.

    searchd –stop
    indexer –all
    searchd
    Problem solved. Sorry for wasting anyone’s time 🙁 Hope this helps someone.

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

Sidebar

Related Questions

Can anybody shed some light on getDay() in Javascript please. Here datepicker is textbox
can someone please help me understand what's going on here lists:dropwhile(fun(X) -> X <
Can we add custom language for RecognizerIntent? I have search many SO Question like
Can we put functions to determine the condition for our list comprehensions. Here is
Can anyone help me find a software stack for doing near real time video
Can I open my custom developed form [instead of native one] when user opens
Can we set the alpha of drawable for its disable state through XML? For
Can anyone tell me how to hide the header in DevExpress gridcontrol..?? I'm using
can any one tell me how can change this java code into objective c.is
Can the Application Name passed to SQL Server (via the ADO Connection string) be

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.