Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Am getting the following error while working with Lucene.Net 'Lucene.Net.Store.FSDirectory' does not contain a definition for 'GetDirectory'. Please give the solution for this.

Thanks in Advance....
Satheesh
Posted
Comments
satheesh 4 21-Sep-15 2:13am    
i Added the Lucene.Net 3.0.3 Reference also...

1 solution

A glance at the documentation[^] confirms what the compiler is telling you.
 
Share this answer
 
Comments
satheesh 4 21-Sep-15 7:25am    
Thank you Richard... :-)
Richard MacCutchan 21-Sep-15 8:38am    
Please, in future, do the basics before posting questions.
Ramya Mathi 22-Mar-17 3:31am    
Hi Satheesh please let me know how to solve this problem..can you post the code or any idea
Lucene.Net.Store.Directory dir = Lucene.Net.Store.FSDirectory.GetDirectory(indexFileLocation, true);
IndexWriter indexWriter = new IndexWriter(dir, new StandardAnalyzer(), true);


Im also getting same error
Richard MacCutchan 22-Mar-17 5:02am    
Follow the link in my 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