public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) {List<Query> luceneSubQueries = makeLuceneSubQueriesField(fieldName, qf);BooleanQuery.Builder bq = new BooleanQuery.Builder();bq.add( luceneSubQueries.get(0), BooleanClause.Occur.MUST);SrndBooleanQuery.addQueriesToBoolean(bq,luceneSubQueries.subList(1, luceneSubQueries.size()),BooleanClause.Occur.MUST_NOT);return bq.build();}
public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf){var luceneSubQueries = MakeLuceneSubQueriesField(fieldName, qf);BooleanQuery bq = new BooleanQuery();bq.Add(luceneSubQueries.FirstOrDefault(), Occur.MUST);SrndBooleanQuery.AddQueriesToBoolean(bq,luceneSubQueries.Skip(1).ToList(),Occur.MUST_NOT);return bq;}