Why doesnt lucene return results
Why doesnt lucene return results I use lucene.net to index the documents. My main aim was to get to search and have the line number and the line of text returned in a document. Here's the code that indexes using (TextReader contentsReader = new StreamReader(fi.FullName)) { doc.Add(new StringField("FullFileName", fi.FullName, Field.Store.YES)); doc.Add(new StringField("LastModifiedDate", modDate, Field.Store.YES)); //doc.Add(new TextField("Contents", contentsReader.ReadToEnd(), Field.Store.YES)); int lineCount = 1; string line = String.Empty; while ((line = contentsReader.ReadLine()) != null) { doc.Add(new Int32Field("LineNo", lineCount, Field.Store.YES)); doc.Add(new TextField("Contents", line, Field.Store.YES)); lineCount++; } Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine("adding " + fi.Name); Console.ResetColor(); writer.AddDocument...