Thread:Extension talk:Lucene-search/How to make Lucene's IndexReader.termDocs work on links field of wiki.links?

I have trouble using the links field in the wiki.links index to find documents that point to a particular article. --kalten, 5 January 2011

For example, to find articles pointing to "Anarchism" article: TermDocs tds = indexReader.termDocs(new Term("links", "0:United")) tds.next; // returns false This returns empty iterator.

However, the same method works as expected with other fields. E.g. TermDocs tds = indexReader.termDocs(new Term("article_key","0:Anarchism")); tds.next; // returns true

I have tried numerous things, including examining the source code creating the index and examining the index with Luke and with no success. According to Luke, there are 1460 docs with term "0:Anarchism" in its term vector.