[DOCS] fix typo
Update function-score-query.asciidoc
[Tests] SimpleRecoveryLocalGatewayTests.testSingleNodeNoFlush could fail if shards were not started

The test starts a single node, indexes into, restarts the node and checks that no data was lost. It only indexed into 2 shards and didn't wait for green meaning that the node could be restarted with non-started primary. In that case the node will not re-assign the primary as it was not started. This commit makes sure that we either wait for primaries to start or index into all shards which has the same net effect.

Also extending some logging in InternalIndexShard.
Don't lookup version for auto generated id and create
When a create document is executed, and its an auto generated id (based on UUID), we know that the document will not exists in the index, so there is no need to try and lookup the version from the index.
For many cases, like logging, where ids are auto generated, this can improve the indexing performance, specifically for lightweight documents where analysis is not a big part of the execution.
we need to make sure that we don't do the optimization on recovery
disabling auto generated id should happen on the state the primary operation happened on
we check, before we operate on the replica, if the state has changed, and we need to apply the replica operations to the new state. But, we should make sure we disable the auto generate id on the state the primary operation happened on, since the replica might have gone through recovery, move to started, and then the shard routing will be started in the new state we sample in the replica operation
generic potential dup flag on replication request
create a generic potential dup flag, that can be used to optimize the auto generate id