How do I perform an AND search in Lucene.net when multiple words are used in a search?
问题 I am playing around with Lucene.net to try and get a handle of how to implement it in my application. I have the following code ..... // Add 2 documents var doc1 = new Document(); var doc2 = new Document(); doc1.Add(new Field("id", "doc1", Field.Store.YES, Field.Index.ANALYZED)); doc1.Add(new Field("content", "This is my first document", Field.Store.YES, Field.Index.ANALYZED)); doc2.Add(new Field("id", "doc2", Field.Store.YES, Field.Index.ANALYZED)); doc2.Add(new Field("content", "The big red