Test search based on OrdFieldSource and ReverseOrdFieldSource.
Tests here create an index with a few documents, each having
an indexed "id" field.
The ord values of this field are later used for scoring.
The order tests use Hits to verify that docs are ordered as expected.
The exact score tests use TopDocs top to verify the exact score.
|