简体   繁体   中英

ElasticSearch index contains little data

I have the following problem. I use Laravel and ElasticQuent package for using ElasticSearch in Laravel. My SQL request contains 35 rows and after I added them to the ElasticSearch index, it contains 18 rows only. What's the reason of my problem? Thanks for reply.

Thanks everybody for replying but I've found the solution by myself. The problem was in ElasticQuent package. It assigns to ElasticSeacrh's index attribute '_id' the value of the DB's field id. My SQL request was with 2 'UNION', so there were several items with similar id's and in ElasticSearch index they stacked, so the quantity of the items in index were different from sql request's rows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM