Spin-off of LUCENE-6425: this is error-prone as it can lead to inconsistent document and total term frequencies.
Here is a patch. FuzzyLikeThisQuery was the only consumer of this API and has been refactored to build the TermContext manually.
+1, thanks for getting these hacks out of termquery and confined to fuzzylikethis.
Commit 1674084 from Adrien Grand in branch 'dev/trunk'
[ https://svn.apache.org/r1674084 ]
LUCENE-6429: Removed the TermQuery(Term,int) constructor.
Commit 1674085 from Adrien Grand in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1674085 ]
Bulk close for 5.2.0.