public VirtualSimpleFacetHandler(string name, TermListFactory termListFactory, IFacetDataFetcher facetDataFetcher, ICollection <string> dependsOn) : this(name, null, termListFactory, facetDataFetcher, dependsOn) { }
/// <summary> /// Initializes a new instance of <see cref="T:RangeFacetHandler"/> with the specified name, Lucene.Net index field name, /// <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance, and predefined ranges. /// </summary> /// <param name="name">The facet handler name.</param> /// <param name="indexFieldName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> /// <param name="predefinedRanges">A set of range strings denoting the beginning and ending of each range, e.g. "[2010/1/1 TO 2012/12/31], [2013/1/1 TO 2015/12/31]". /// Date and numeric types are supported. The range values are sorted in lexicographical order, so if you want them formatted a different way, you should provide them in /// a specific order. It is valid for the ranges to overlap.</param> public RangeFacetHandler(string name, string indexFieldName, TermListFactory termListFactory, IEnumerable <string> predefinedRanges) : base(name) { _indexFieldName = indexFieldName; _termListFactory = termListFactory; _predefinedRanges = predefinedRanges; }
/// <summary> /// Initializes a new instance of <see cref="T:RangeFacetHandler"/> with the specified name, Lucene.Net index field name, /// <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance, and predefined ranges. /// </summary> /// <param name="name">The facet handler name.</param> /// <param name="indexFieldName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> /// <param name="predefinedRanges">A set of range strings denoting the beginning and ending of each range, e.g. "[2010/1/1 TO 2012/12/31], [2013/1/1 TO 2015/12/31]". /// Date and numeric types are supported. The range values are sorted in lexicographical order, so if you want them formatted a different way, you should provide them in /// a specific order. It is valid for the ranges to overlap.</param> public RangeFacetHandler(string name, string indexFieldName, TermListFactory termListFactory, IList <string> predefinedRanges) : base(name) { this.m_indexFieldName = indexFieldName; this.m_termListFactory = termListFactory; this.m_predefinedRanges = predefinedRanges; }
/// <summary> /// Initializes a new instance of <see cref="T:PathFacetHandler"/> with the specified name and /// Lucene.Net index field name. The field separator is assumed to be "/" /// </summary> /// <param name="name">The name of the facet handler.</param> /// <param name="indexedName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="multiValue">Indicates whether multiple values are allowed in this field.</param> public PathFacetHandler(string name, string indexedName, bool multiValue) : base(name) { _indexedName = indexedName; _multiValue = multiValue; _termListFactory = TermListFactory.StringListFactory; _separator = DEFAULT_SEP; }
// protected IEnumerable<string> _depends; // NOT USED /// <summary> /// Initializes a new instance of <see cref="T:MultiValueFacetHandler"/> with the specified name, /// Lucene.Net index field name, <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance, size payload term, /// and list of facet handlers this one depends on. /// </summary> /// <param name="name">The facet handler name.</param> /// <param name="indexFieldName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> /// <param name="sizePayloadTerm"></param> /// <param name="dependsOn">List of facets this one depends on for loading.</param> public MultiValueFacetHandler(string name, string indexFieldName, TermListFactory termListFactory, Term sizePayloadTerm, ICollection <string> dependsOn) : base(name, dependsOn) { //_depends = dependsOn; // NOT USED m_indexFieldName = (!string.IsNullOrEmpty(indexFieldName) ? indexFieldName : name); m_termListFactory = termListFactory; m_sizePayloadTerm = sizePayloadTerm; }
/// <summary> /// Initializes a new instance of <see cref="T:MultiValueFacetHandler"/> with the specified name, /// Lucene.Net index field name, <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance, size payload term, /// and list of facet handlers this one depends on. /// </summary> /// <param name="name">The facet handler name.</param> /// <param name="indexFieldName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> /// <param name="sizePayloadTerm"></param> /// <param name="dependsOn">List of facets this one depends on for loading.</param> public MultiValueFacetHandler(string name, string indexFieldName, TermListFactory termListFactory, Term sizePayloadTerm, IEnumerable <string> dependsOn) : base(name, dependsOn) { _depends = dependsOn; _indexFieldName = (indexFieldName != null ? indexFieldName : name); _termListFactory = termListFactory; _sizePayloadTerm = sizePayloadTerm; }
public VirtualSimpleFacetHandler(string name, string indexFieldName, TermListFactory termListFactory, IFacetDataFetcher facetDataFetcher, ICollection <string> dependsOn) : base(name, null, termListFactory, dependsOn) { m_facetDataFetcher = facetDataFetcher; }
public AttributesFacetHandler(string name, string indexFieldName, TermListFactory termListFactory, Term sizePayloadTerm, IDictionary <string, string> facetProps) : base(name, indexFieldName, sizePayloadTerm, termListFactory, new string[0]) { if (facetProps.ContainsKey(SEPARATOR_PROP_NAME)) { this.separator = Narrow(facetProps.Get(SEPARATOR_PROP_NAME))[0]; } else { this.separator = DEFAULT_SEPARATOR; } if (facetProps.ContainsKey(MAX_FACETS_PER_KEY_PROP_NAME)) { this.numFacetsPerKey = int.Parse(Narrow(facetProps.Get(MAX_FACETS_PER_KEY_PROP_NAME))); } }
/// <summary> /// Initializes a new instance of <see cref="T:MultiValueFacetHandler"/> with the specified name, /// Lucene.Net index field name, <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance, and size payload term. /// </summary> /// <param name="name">The facet handler name.</param> /// <param name="indexFieldName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> /// <param name="sizePayloadTerm"></param> public MultiValueFacetHandler(string name, string indexFieldName, TermListFactory termListFactory, Term sizePayloadTerm) : this(name, indexFieldName, termListFactory, sizePayloadTerm, null) { }
/// <summary> /// Initializes a new instance of <see cref="T:MultiValueFacetHandler"/> with the specified name /// and <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance. /// The Lucene.Net index field must have the same name. /// </summary> /// <param name="name">The facet handler name. Must be the same value as the Lucene.Net index field name.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> public MultiValueFacetHandler(string name, TermListFactory termListFactory) : this(name, name, termListFactory) { }
/// <summary> /// Initializes a new instance of <see cref="T:MultiValueFacetHandler"/> with the specified name, /// Lucene.Net index field name, and <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance. /// </summary> /// <param name="name">The facet handler name.</param> /// <param name="indexFieldName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> public MultiValueFacetHandler(string name, string indexFieldName, TermListFactory termListFactory) : this(name, indexFieldName, termListFactory, null, null) { }
public MultiValueWithWeightFacetHandler(string name, string indexFieldName, TermListFactory termListFactory) : base(name, indexFieldName, termListFactory, null, null) { }
/// <summary> /// Initializes a new instance of <see cref="T:SimpleFacetHandler"/> with the specified name and <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance. /// The Lucene.Net index field must have the same name. /// </summary> /// <param name="name">The facet handler name. Must be the same value as the Lucene.Net index field name.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> public SimpleFacetHandler(string name, TermListFactory termListFactory) : this(name, name, termListFactory) { }
/// <summary> /// Initializes a new instance of <see cref="T:SimpleFacetHandler"/> with the specified name, Lucene.Net index field name, /// <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance, and a list of facets this one depends on for loading. /// </summary> /// <param name="name">The facet handler name.</param> /// <param name="indexFieldName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> /// <param name="dependsOn">List of facets this one depends on for loading.</param> public SimpleFacetHandler(string name, string indexFieldName, TermListFactory termListFactory, IEnumerable <string> dependsOn) : base(name, dependsOn) { _indexFieldName = indexFieldName; _termListFactory = termListFactory; }
/// <summary> /// Initializes a new instance of <see cref="T:RangeFacetHandler"/> with the specified name, /// <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance, and predefined ranges. /// The Lucene.Net index field must have the same name. /// </summary> /// <param name="name">The facet handler name. Must be the same value as the Lucene.Net index field name.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> /// <param name="predefinedRanges">A set of range strings denoting the beginning and ending of each range, e.g. "[2010/1/1 TO 2012/12/31], [2013/1/1 TO 2015/12/31]". /// Date and numeric types are supported. The range values are sorted in lexicographical order, so if you want them formatted a different way, you should provide them in /// a specific order. It is valid for the ranges to overlap.</param> public RangeFacetHandler(string name, TermListFactory termListFactory, IEnumerable <string> predefinedRanges) : this(name, name, termListFactory, predefinedRanges) { }
/// <summary> /// Initializes a new instance of <see cref="T:CompactMultiValueFacetHandler"/> with the specified name, /// Lucene.Net index field name, and <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance. /// </summary> /// <param name="name">The facet handler name.</param> /// <param name="indexFieldName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> public CompactMultiValueFacetHandler(string name, string indexFieldName, TermListFactory termListFactory) : base(name) { _indexFieldName = indexFieldName; _termListFactory = termListFactory; }
public MultiRangeFacetHandler(string name, string indexFieldName, Term sizePayloadTerm, TermListFactory termListFactory, IList <string> predefinedRanges) : base(name, indexFieldName, termListFactory, predefinedRanges) { this.m_sizePayloadTerm = sizePayloadTerm; }
/// <summary> /// Initializes a new instance of <see cref="T:SimpleFacetHandler"/> with the specified name, Lucene.Net index field name, /// <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance, and a list of facets this one depends on for loading. /// </summary> /// <param name="name">The facet handler name. Must be the same value as the Lucene.Net index field name.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> /// <param name="dependsOn">List of facets this one depends on for loading.</param> public SimpleFacetHandler(string name, TermListFactory termListFactory, ICollection <string> dependsOn) : this(name, name, termListFactory, dependsOn) { }
/// <summary> /// Initializes a new instance of <see cref="T:SimpleFacetHandler"/> with the specified name, Lucene.Net index field name, /// <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance, and a list of facets this one depends on for loading. /// </summary> /// <param name="name">The facet handler name.</param> /// <param name="indexFieldName">The name of the Lucene.Net index field this handler will utilize.</param> /// <param name="termListFactory">A <see cref="T:BoboBrowse.Net.Facets.Data.TermListFactory"/> instance that will create a /// specialized <see cref="T:BoboBrowse.Net.Facets.Data.ITermValueList"/> to compare the field values, typically using their native or primitive data type.</param> /// <param name="dependsOn">List of facets this one depends on for loading.</param> public SimpleFacetHandler(string name, string indexFieldName, TermListFactory termListFactory, ICollection <string> dependsOn) : base(name, dependsOn) { m_indexFieldName = indexFieldName; m_termListFactory = termListFactory; }