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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:44:38+00:00 2026-06-15T08:44:38+00:00

I am doing some testing with ElasticSearch, and I am finding that it does

  • 0

I am doing some testing with ElasticSearch, and I am finding that it does not return results for extremely common terms. I assume this may be because it’s timing out, running out of memory, or something related, but I’m confused as to why I’m not getting any sort of error feedback.

This is the code snippet:

// client & index ----------------------------------------------
$eC = new Elastica_Client();
$eI = $eC->getIndex('test_index');


// query string ---------------------------------------
$eQqs = new Elastica_Query_QueryString();
$eQqs->setDefaultOperator('AND');
$eQqs->setQuery('the'); ### <--- example of a common keyword,
// --- note that if I were to use something less common like "zoo"
// that it would return an expected result set


// search object --------------------------------------
$eQ = new Elastica_Query();
$eQ->setQuery( $eQqs );
$eQ->setFrom(1);
$eQ->setLimit(3);


// get result set -------------------------------------
$eRS = $eI->search( $eQ );


// output results ----------------------------------------
echo "total time: " . $eRS->getTotalTime() . "\n";
echo "total results: " . $eRS->getTotalHits() . "\n\n";

foreach( $eRS->getResults() as $result ) {
    print_r( $result->getData() );
}

As mentioned in the comment, if I search for a less common string, then it works fine, and I’ll get something like this:

total time: 292
total results: 21

Array
(
    [id] => 1234
    [name] => A day at the Zoo
...

However, if I search for something very common, like “the”, I get nothing from $eRS->getResults(), but rather I get this:

total time: 2
total results: 0

Just to note, I have confirmed that indeed there are numerous instances of “the” in the index. What is going on here? Am I doing this incorrectly? If not, how can I get it to spit out some meaningful errors instead of this apparently unexpected result set?

  • 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-15T08:44:39+00:00Added an answer on June 15, 2026 at 8:44 am

    Common words like “a”, “an”, “and”, “are”, “as”, “at”, “be”, “but”, “by”, “for”, “if”, “in”, “into”, “is”, “it”, “no”, “not”, “of”, “on”, “or”, “such”, “that”, “the”, “their”, “then”, “there”, “these”, “they”, “this”, “to”, “was”, “will”, “with” are so called stop words. These words are very common and it’s typically considered that they don’t add value to full text search. Therefore they are not indexed and ignored during search by default. You can change the list of words or disable them completely by using non-default analyzer for your index.

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

Sidebar

Related Questions

I was doing some testing with some sites (that I will not mention), and
I'm using pdftk and doing some testing and finding that bursting a multipage PDF
I was just doing some random testing on locking in multi-threading this morning and
I am doing some performance testing and have found that SQL seems to be
I'm in the process of doing some advance IE8 testing, and it seems that
I've been reading and doing some testing and found that the command. Length of
I was doing some testing and i realized that the writer doesn't get automatically
I was doing some unit testing on code that could throw a number of
I am doing some testing in my iPhone app and I get this error:
I am doing some testing where I have a lot of files that I

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.