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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:33:57+00:00 2026-05-26T01:33:57+00:00

Suppose i have a sphinx index named worldcities with the with the following fields

  • 0

Suppose i have a sphinx index named “worldcities” with the with the following fields / attributes:

country_id # int attribute

city # text field

accent_city # text field

and i run the following sphinxql query:

SELECT * FROM worldcities WHERE country_id = 16 AND MATCH((@(city,accent_city) "New Yor*"))

How does sphinx evaluates the query?:
Is it first searching through all the records and then filters the results by countr_id:
“give me all the results that start with ‘New Yor’ and the filter them by country_id”?

Or does it filter first by country id and the searches through the results:
“give me all the results that have countr_id = 16 then search in those”?

Hope i made myself clear

  • 1 1 Answer
  • 1 View
  • 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-26T01:33:57+00:00Added an answer on May 26, 2026 at 1:33 am

    “give me all the results that start with ‘New Yor’ and the filter them by country_id”

    this one.

    The full-text queries runs first. Then the filters ‘exclude’ non required matches.

    btw, your query is missing some quotes, should be

    MATCH('@(city,accent_city) "New Yor*"')
    

    Match function takes a string.

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

Sidebar

Related Questions

Suppose I have two h:inputText components. I want to bind both of the text
Suppose I have a asp.net mvc 3 application with an interface named /getdata ,
Suppose I have these tables: Fruits - FruitID INT PK - FruitName NVARCHAR(30) -
Suppose I have a 400K text file which I want to read from a
Suppose I have the following code: void* my_alloc (size_t size) { return new char
Suppose I have following class structure: class Base {} class A extends Base {}
Suppose I have a bunch of static fields and I want to use them
Suppose i have the following class. public class Location { public Id { get;
Suppose I have the following two classes in two different assemblies: //in assembly A
Suppose I have the following base class, Queen and Knight as its derivatives. WeaponBehaviour

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.