Click here to Skip to main content
15,916,601 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can anyone tell me how to use the function
TermFreqVector in lucene.net

when i use
C#
IndexReader reader = IndexReader.Open(dir);     
TermFreqVector termFreq = reader.GetTermFreqVector(1, "Content");
String[] term = termFreq.GetTerms();


it gives error as
Object reference not set to an instance of an object.
on the LINE
C#
string[]   term = termFreq.GetTerms();
Posted
Updated 12-Oct-11 21:32pm
v3

1 solution

termFreq is null, try "content" in lower case.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900