/// <summary>
 /// Initializes a new instance of the <see cref="MultiSearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexNames">Names of the indexes that are being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 /// <param name="result">The search result was found, otherwise null.</param>
 public MultiSearcherEventArgs(string[] indexNames, SearchMethodType methodType, SearchMethodLocation location, SearchResult result)
 {
     this.indexNames = indexNames;
     this.SearchMethodType = methodType;
     this.SearchMethodLocation = location;
     this.SearchResult = result;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexName">Name of the index that is being searched.</param>
 /// <param name="structure">The structure of the index that is being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 /// <param name="result">The search result was found.</param>
 public SearcherEventArgs(string indexName, IndexType structure, SearchMethodType methodType, SearchMethodLocation location, SearchResult result)
 {
     this.indexName = indexName;
     this.structure = structure;
     this.SearchMethodType = methodType;
     this.SearchMethodLocation = location;
     this.SearchResult = result;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MultiSearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexNames">Names of the indexes that are being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 /// <param name="field">The field name to create a SearchResult instance from.</param>
 /// <param name="value">The value of the field to create a SearchResult instance from.</param>
 /// <param name="boost">The amount of relevance applied to the search result.</param>
 internal MultiSearcherEventArgs(string[] indexNames, SearchMethodType methodType, SearchMethodLocation location, string field, string value, float boost)
 {
     this.indexNames = indexNames;
     this.SearchMethodType = methodType;
     this.SearchMethodLocation = location;
     Dictionary<string, string> values = new Dictionary<string, string>();
     values.Add(field, value);
     this.SearchResult = new SearchResult(values, string.Join(", ", indexNames), boost);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexName">Name of the index that is being searched.</param>
 /// <param name="structure">The structure of the index that is being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 /// <param name="field">The field name to create a SearchResult instance from.</param>
 /// <param name="value">The value of the field to create a SearchResult instance from.</param>
 /// <param name="boost">The amount of relevance applied to the search result.</param>
 internal SearcherEventArgs(string indexName, IndexType structure, SearchMethodType methodType, SearchMethodLocation location, string field, string value, float boost)
 {
     this.indexName = indexName;
     this.structure = structure;
     this.SearchMethodType = methodType;
     this.SearchMethodLocation = location;
     Dictionary<string, string> values = new Dictionary<string, string>();
     values.Add(field, value);
     this.SearchResult = new SearchResult(values, this.indexName, boost);
 }
Exemplo n.º 5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MultiSearcherEventArgs"/> class.
        /// </summary>
        /// <param name="indexNames">Names of the indexes that are being searched.</param>
        /// <param name="methodType">The search method type that is being used.</param>
        /// <param name="location">The location within the method body where this event was fired from.</param>
        /// <param name="field">The field name to create a SearchResult instance from.</param>
        /// <param name="value">The value of the field to create a SearchResult instance from.</param>
        /// <param name="boost">The amount of relevance applied to the search result.</param>
        internal MultiSearcherEventArgs(string[] indexNames, SearchMethodType methodType, SearchMethodLocation location, string field, string value, float boost)
        {
            this.indexNames           = indexNames;
            this.SearchMethodType     = methodType;
            this.SearchMethodLocation = location;
            Dictionary <string, string> values = new Dictionary <string, string>();

            values.Add(field, value);
            this.SearchResult = new SearchResult(values, string.Join(", ", indexNames), boost);
        }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MultiSearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexNames">Names of the indexes that are being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 /// <param name="result">The search result was found, otherwise null.</param>
 public MultiSearcherEventArgs(string[] indexNames, SearchMethodType methodType, SearchMethodLocation location, SearchResult result)
 {
     this.indexNames           = indexNames;
     this.SearchMethodType     = methodType;
     this.SearchMethodLocation = location;
     this.SearchResult         = result;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MultiSearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexNames">Names of the indexes that are being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 public MultiSearcherEventArgs(string[] indexNames, SearchMethodType methodType, SearchMethodLocation location)
     : this(indexNames, methodType, location, null)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexName">Name of the index that is being searched.</param>
 /// <param name="structure">The structure of the index that is being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 public SearcherEventArgs(string indexName, IndexType structure, SearchMethodType methodType, SearchMethodLocation location)
     : this(indexName, structure, methodType, location, null)
 {
 }
Exemplo n.º 9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SearcherEventArgs"/> class.
        /// </summary>
        /// <param name="indexName">Name of the index that is being searched.</param>
        /// <param name="structure">The structure of the index that is being searched.</param>
        /// <param name="methodType">The search method type that is being used.</param>
        /// <param name="location">The location within the method body where this event was fired from.</param>
        /// <param name="field">The field name to create a SearchResult instance from.</param>
        /// <param name="value">The value of the field to create a SearchResult instance from.</param>
        /// <param name="boost">The amount of relevance applied to the search result.</param>
        internal SearcherEventArgs(string indexName, IndexType structure, SearchMethodType methodType, SearchMethodLocation location, string field, string value, float boost)
        {
            this.indexName            = indexName;
            this.structure            = structure;
            this.SearchMethodType     = methodType;
            this.SearchMethodLocation = location;
            Dictionary <string, string> values = new Dictionary <string, string>();

            values.Add(field, value);
            this.SearchResult = new SearchResult(values, this.indexName, boost);
        }
Exemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexName">Name of the index that is being searched.</param>
 /// <param name="structure">The structure of the index that is being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 /// <param name="result">The search result was found.</param>
 public SearcherEventArgs(string indexName, IndexType structure, SearchMethodType methodType, SearchMethodLocation location, SearchResult result)
 {
     this.indexName            = indexName;
     this.structure            = structure;
     this.SearchMethodType     = methodType;
     this.SearchMethodLocation = location;
     this.SearchResult         = result;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexName">Name of the index that is being searched.</param>
 /// <param name="structure">The structure of the index that is being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 public SearcherEventArgs(string indexName, IndexType structure, SearchMethodType methodType, SearchMethodLocation location)
     : this(indexName, structure, methodType, location, null)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MultiSearcherEventArgs"/> class.
 /// </summary>
 /// <param name="indexNames">Names of the indexes that are being searched.</param>
 /// <param name="methodType">The search method type that is being used.</param>
 /// <param name="location">The location within the method body where this event was fired from.</param>
 public MultiSearcherEventArgs(string[] indexNames, SearchMethodType methodType, SearchMethodLocation location)
     : this(indexNames, methodType, location, null)
 {
 }