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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:08:07+00:00 2026-05-30T17:08:07+00:00

I have been trying to connect sphinx server with nodejs and limestone module. But

  • 0

I have been trying to connect sphinx server with nodejs and limestone module. But it is throwing error as follows. Please help me on this.

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: ENOENT, No such file or directory
    at doConnect (net.js:549:5)
    at Socket.connect (net.js:709:5)
    at Object.createConnection (net.js:265:5)
    at Object.connect (/home/node/node_modules/limestone/limestone.js:129:23)
    at Object.<anonymous> (/home/node/www/bmchat-new/sphinx-connect.js:4:15)
    at Module._compile (module.js:411:26)
    at Object..js (module.js:417:10)
    at Module.load (module.js:343:31)
    at Function._load (module.js:302:12)
    at Array.<anonymous> (module.js:430:10)

Source code of sphinx-connect.js

var limestone = require("limestone").SphinxClient(),
sys = require("sys");

limestone.connect("192.168.2.168:9312", // port. 9312 is standard Sphinx port. also 'host:port' allowed
    function(err) { // callback
      if (err) {
          sys.puts('Connection error: ' + err);
      }

      sys.puts('Connected, sending query');
      limestone.query(
          {'query':'test', maxmatches:1}, 
          function(err, answer) {
          limestone.disconnect();
          sys.puts("Extended search for 'test' yielded " + 
               answer.match_count + " results: " + 
               JSON.stringify(answer));
          });         
     });
  • 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-30T17:08:08+00:00Added an answer on May 30, 2026 at 5:08 pm

    The issue is that i am using old limestone.js which i have got from npm(v1.0.106). So the updated one, you can get from github

    Issue found is, old limestone.js using server_conn = tcp.createConnection(port); instead of the below one server_conn = tcp.createConnection(port, host);

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

Sidebar

Related Questions

I have been trying to implement a small SERVER - CLIENT app but ran
I have been trying to connect to some web services using WCF but I
I have been trying to connect to the Salesforce REST API but am not
I have been trying to get around this error for a day now and
I have been trying to connect to my database using pdo on godaddy with
I have been trying to connect netbean service for database explorer with Microsoft SQL
I have been trying to set up a PHP based SOAP client to connect
So I have been trying to run the Facebook Connect example for PhoneGap /
I am trying to connect to Webtrend's API using PHP but haven't been able
I have been trying to get ruby 1.8.6 to connect to a MS SQL

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.