MemoryIndex fails to set the term's bytes when you seek by ord.
I hit this in LUCENE-5860 ...
Simple patch: 1 line fix + test case. I think it's ready ...
Commit 1671540 from Michael McCandless in branch 'dev/trunk'
[ https://svn.apache.org/r1671540 ]
LUCENE-6395: MemoryIndex's TermsEnum.seekExact(long ord) was failing to set the term bytes
Commit 1671541 from Michael McCandless in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1671541 ]
Commit 1671542 from Michael McCandless in branch 'dev/branches/lucene_solr_5_1'
[ https://svn.apache.org/r1671542 ]
Bulk close after 5.1 release