public void BuildQuery() { var q = new Query { Children = { new TermClause{ Field = "Title", Value = "kurt"}, new TermClause{ Field = "Text", Value = "kurt", Type = QueryClauseType.Required }, new BooleanClause { Type = QueryClauseType.Required, Boost = .8f, Children = { new TermClause{ Field = "Title", Value = "kurt"}, new TermClause{ Field = "Text", Value = "kurt" } } } } }; Console.WriteLine(q.ToString()); }
public SearchResults Search(Query query) { return this.searcher.Search(query); }