IndexSearch.docfreq returns 0.0
I wanna get all documents which matches a specific term:
I alway get 0.0 from docfreq, but if i try this query with the "normal way" with a QueryParser and a Query-Object i get some Hits. So there are obviously documents with "Superman" in the name-field.
IndexSearcher searcher = new IndexSearcher(my_lucene_dir);
Term term_freq = new Term("name","Superman");
int docfreq = searcher.docFreq(term_freq);
Does somebody know why i always get 0.0 back?
regards && thx