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

  • Home
  • SEARCH
  • 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 8793741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:09:42+00:00 2026-06-13T23:09:42+00:00

I don’t sure it’s my problem or problem in bin-release (I use Win64 binaries

  • 0

I don’t sure it’s my problem or problem in bin-release (I use Win64 binaries w/MySQL support 2.0.6-release). The problem in the fact that i have incorrect searching result when I find and sort by sql_attr_str2ordinal field. Below I attached dump with searching example.( For example i search “test” find 7 results, then I want sorted by leng_id, and key 0 is worked, but another key 1 and 2 does not work .
From dump I think you can understand problem).
Dump:

c:\server\sphinx\bin>search.exe -a test
Sphinx 2.0.6-release (r3473)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file './sphinx.conf'...
index 'topicsIndex': query 'test ': returned 7 matches of 7 total in 0.000 sec

displaying matches:
1. document=18, weight=2602, topic_date_add=Tue Oct 30 01:16:19 2012, topic_publ
ish=1, topic_lang=1, tag=(19)
2. document=1, weight=2577, topic_date_add=Sun Sep 30 14:32:05 2012, topic_publi
sh=1, topic_lang=1, tag=(2)
c:\server\sphinx\bin>search.exe -a test
Sphinx 2.0.6-release (r3473)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file './sphinx.conf'...
index 'topicsIndex': query 'test ': returned 7 matches of 7 total in 0.000 sec

displaying matches:
1. document=18, weight=2602, topic_date_add=Tue Oct 30 01:16:19 2012, topic_publ
ish=1, topic_lang=1, tag=(19)
2. document=1, weight=2577, topic_date_add=Sun Sep 30 14:32:05 2012, topic_publi
sh=1, topic_lang=1, tag=(2)
3. document=19, weight=2577, topic_date_add=Tue Oct 30 01:17:24 2012, topic_publ
ish=1, topic_lang=2, tag=(20)
4. document=20, weight=2577, topic_date_add=Tue Oct 30 02:11:30 2012, topic_publ
ish=1, topic_lang=1, tag=(21)
5. document=3, weight=1556, topic_date_add=Sun Sep 30 15:54:52 2012, topic_publi
sh=1, topic_lang=2, tag=(4)
6. document=4, weight=1556, topic_date_add=Mon Oct 01 00:48:09 2012, topic_publi
sh=1, topic_lang=0, tag=(5)
7. document=17, weight=1556, topic_date_add=Tue Oct 30 00:17:39 2012, topic_publ
ish=1, topic_lang=0, tag=(18)

words:
1. 'test': 7 documents, 15 hits

index 'commentsIndex': query 'test ': returned 3 matches of 3 total in 0.000 sec


displaying matches:
1. document=242, weight=1646, comment_date=Wed Oct 31 01:40:51 2012, comment_del
ete=0, comment_topic_lang=1
2. document=1, weight=1606, comment_date=Sun Sep 30 22:55:56 2012, comment_delet
e=0, comment_topic_lang=1
3. document=241, weight=1606, comment_date=Tue Oct 30 02:11:46 2012, comment_del
ete=0, comment_topic_lang=1

words:
1. 'test': 3 documents, 4 hits


c:\server\sphinx\bin>search.exe -a test -f topic_lang 0
Sphinx 2.0.6-release (r3473)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file './sphinx.conf'...
index 'topicsIndex': query 'test ': returned 2 matches of 2 total in 0.000 sec

displaying matches:
1. document=4, weight=1556, topic_date_add=Mon Oct 01 00:48:09 2012, topic_publi
sh=1, topic_lang=0, tag=(5)
2. document=17, weight=1556, topic_date_add=Tue Oct 30 00:17:39 2012, topic_publ
ish=1, topic_lang=0, tag=(18)

words:
1. 'test': 7 documents, 15 hits

index 'commentsIndex': search error: .

c:\server\sphinx\bin>search.exe -a test -f topic_lang 1
Sphinx 2.0.6-release (r3473)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file './sphinx.conf'...
index 'topicsIndex': query 'test ': returned 0 matches of 0 total in 0.000 sec

words:
1. 'test': 7 documents, 15 hits

index 'commentsIndex': search error: .

c:\server\sphinx\bin>
  • 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-06-13T23:09:43+00:00Added an answer on June 13, 2026 at 11:09 pm

    sql_attr_str2ordinal is not for filtering , just for sorting.
    Also use the sql interface or api rather than search tool ( it’s more for testing).

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

Sidebar

Related Questions

Don't yell at me! i have seen many threads claiming that HTML cannot be
DON'T ASK WHY but... I have a regex that needs to be case insensitive
Don't ask me how but I'm in a situation where I have DCPs published
Don't be scared of the extensive code. The problem is general. I just provided
Don't ask why but I have the requirement to draw a border around certain
Don't think that I'm mad, I understand how php works! That being said. I
Don't be afraid to use any technical jargon or low-level explanations for things, please.
Don't they both have to convert to machine code at some point to execute
I don't want my user to even try downloading something unless they have Wi-Fi
Don't overthink this - there's a very commonly used term and I ... have

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.