Ecclesiastes was written by King Solomon, King David's son.
The wisdom of Solomon was so great, the Queen of Bathsheeba made a year-long journey just to hear him.
The time of Solomon, and his accomplishments, are not taken from older traditions but from the man himself.
Perhaps read some for yourself. The Bible doesn't indoctrinate people do that. The Bible has so much wisdom and knowledge packed within its pages I'm not sure why people are so reticent to peruse or even read through it.
The Bible doesn't bite, but it certainly does cut to the quick.