Just got back to work on this site. Index was empty so I rebuilt: 333 documents in the index, highest post ID 7958. Viewing the table returns expected 18,682 rows. The results look pretty straightforward and accurate.
Add a new post. Documents in index: 1, highest post ID: 7979 (the ID of the new post). View the table: 1670 rows! all the document IDs are 7979, but I noticed a pattern:
1, 7979, 'uncategorized', 1, 4
2, 7979, 'ciarlill', 1, 5
3, 7979, 'ciarlill', 1, 1
4, 7979, 'test', 1, 1
5, 7979, 'test', 1, 0
This was repeated over and over. The post title was "ciarlill test" and the body was just "test" and it was categorized in "uncategorized". Not sure why those 5 rows would repeat 334 times.
Rebuild the index again -
Documents in the index: 334 (coincidence??)
Highest post ID indexed: 7979
Viewing the table I get 18,687 rows. (+5 from the last index build) Just to check:
SELECT * FROM<code>www2-wordpress</code>.<code>wp_relevanssi</code> WHERE doc = 7979
14618, 7979, 'uncategorized', 1, 4
14619, 7979, 'ciarlill', 1, 5
14620, 7979, 'ciarlill', 1, 1
14621, 7979, 'test', 1, 1
14622, 7979, 'test', 1, 0
5 rows as expected, not 1670. So I think it is safe to say that something very strange is happening when new content is added. Let me know what other tests I can do or info I can provide to help.