Ejemplo n.º 1
0
        public BooleanFieldSetting AddBooleanField(string name, string indexName = null,
                                                   string format     = null,
                                                   Store store       = Store.no,
                                                   IndexType index   = IndexType.analyzed,
                                                   int precisionStep = 4,
                                                   double boost      = 1.0,
                                                   string nullValue  = null,
                                                   bool includeInAll = true)
        {
            Contract.Assert(_fieldSettings != null);

            var field = new BooleanFieldSetting();

            field.Name         = name;
            field.IndexName    = indexName;
            field.Store        = store;
            field.Index        = index;
            field.Boost        = boost;
            field.NullValue    = nullValue;
            field.IncludeInAll = includeInAll;

            _fieldSettings[name] = field;
            return(field);
        }
Ejemplo n.º 2
0
        public BooleanFieldSetting AddBooleanField(string name, string indexName = null,
									string format = null,
									Store store = Store.no,
									IndexType index = IndexType.analyzed,
									int precisionStep = 4,
									double boost = 1.0,
									string nullValue = null,
									bool includeInAll = true)
		{
			Contract.Assert(_fieldSettings != null);

			var field = new BooleanFieldSetting();
			field.Name = name;
			field.IndexName = indexName;
			field.Store = store;
			field.Index = index;
			field.Boost = boost;
			field.NullValue = nullValue;
			field.IncludeInAll = includeInAll;

			_fieldSettings[name] = field;
            return field;
		}