Click here to Skip to main content
15,905,238 members

Comments by Member 13514318 (Top 1 by date)

Member 13514318 12-Nov-17 3:27am View    
i deleted the line
Directory dir = FSDirectory.GetDirectory(indexFileLocation, true);
from the code

and modified the searcher as
Searcher searcher = new IndexSearcher(IndexPath ); where IndexPath is the string ...and it works !!!