Answer by SharpBarb for Lucene .NET search results
First thing. You have to commit the changes to the index.indexWriter.Optimize();indexWriter.Commit(); //Add ThisindexWriter.Close();Edit#2 Also, keep it simple until you get something that works....
View ArticleAnswer by Joe Enzminger for Lucene .NET search results
In my (limited) experience working with Lucene, I've found that you have to build up your own query in order to get "google" like behavior. Here is what I do, YMMV, but it generates expected results in...
View ArticleAnswer by jishi for Lucene .NET search results
That Parse() method is inherited. Have you tried utilizing the static methods that returns a Query object?Parse(Version matchVersion, String[] queries, String[] fields, Analyzer analyzer)
View ArticleLucene .NET search results
I'm using this code to index:public void IndexEmployees(IEnumerable<Employee> employees){ var indexPath = GetIndexPath(); var directory = FSDirectory.Open(indexPath); var indexWriter = new...
View Article