Was.OrcSearch – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 using System;
2  
3 namespace Was.OrcSearch.Attributes
4 {
5 /// <summary>
6 /// Defines a property as searchable so it will be indexed.
7 /// </summary>
8 [AttributeUsage(AttributeTargets.Property)]
9 public class SearchablePropertyAttribute : Attribute
10 {
11 public SearchablePropertyAttribute()
12 {
13 Analyze = true;
14 }
15  
16 /// <summary>
17 /// Gets or sets the search name. If not specified, this will equal the property name.
18 /// </summary>
19 /// <value>The name.</value>
20 public string SearchName { get; set; }
21  
22 /// <summary>
23 /// Gets or sets a value indicating whether this property must be analyzed. Set this value to <c>true</c> for common
24 /// text
25 /// or <c>false</c> for unique keys such as product ids.
26 /// <para />
27 /// The default value is <c>true</c>.
28 /// </summary>
29 /// <value><c>true</c> if analyze; otherwise, <c>false</c>.</value>
30 public bool Analyze { get; set; }
31 }
32 }