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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:56:58+00:00 2026-06-18T02:56:58+00:00

In my MySQL: mysql> select * from cc; +—-+——+ | id | name |

  • 0

In my MySQL:

mysql> select * from cc;
+----+------+
| id | name |
+----+------+
|  1 | aa   |
|  2 | bb   |
+----+------+
2 rows in set (0.00 sec)

and elasticsearch jdbc river is:

curl -XPUT 'localhost:9201/_river/my_jdbc_river/_meta' -d '{
    "type" : "jdbc",
    "jdbc" : {
        "driver" : "com.mysql.jdbc.Driver",
        "url" : "jdbc:mysql://localhost:3301/test",
        "user" : "root",
        "password" : "root",
    "poll" : "10s",
    "strategy" : "simple",
        "sql" : "select * from cc"
    }
}'

but,I don’t understand elasticsearch index data why result is:

aa
bb
aa
bb
aa
aa
aa
bb
bb
bb

I think result like this:

aa
bb

please help me, and thanks gsc-leticia help me format this question content.

  • 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-18T02:56:59+00:00Added an answer on June 18, 2026 at 2:56 am

    You did not define an _id so the river add your documents every minutes.

    You should define your river with something like:

    curl -XPUT 'localhost:9201/_river/my_jdbc_river/_meta' -d '{
        "type" : "jdbc",
        "jdbc" : {
            "driver" : "com.mysql.jdbc.Driver",
            "url" : "jdbc:mysql://localhost:3301/test",
            "user" : "root",
            "password" : "root",
        "poll" : "10s",
        "strategy" : "simple",
            "sql" : "select id as _id, name from cc"
        }
    }'
    

    See JDBC River documentation for details.

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

Sidebar

Related Questions

Is it possible in MySQL to select from a static set of integers? Given
<?php $con= mysql_connect(localhost,root,mysql); mysql_select_db(Db_name,$con); $res=mysql_query(select *from table_name); mysql_close($con); // closing connection before fetching contents.
I'm going to read records from database(MySQL) by name using this select statement: select
which is more efficient (when managing over 100K records): A. Mysql SELECT * FROM
In MySQL Select 1 from mytable and select null from mytable both return the
this is the mysql query SELECT * FROM users AS up JOIN users AS
I have a mysql query Select * from tbl_schoolphotos where Filename like 'glasshouse_1_%' order
Consider these three mysql statements: select * from Users; select id, title, value from
I have a MySQL query SELECT * FROM 'redirect' WHERE 'user_id'= \''.$_SESSION['user_id'].' \' ORDER
I've been attempting to adjust a mysql SELECT statement based on input from checkboxes.

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.