forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFullTextIndexFieldAttribute.cs
More file actions
35 lines (29 loc) · 915 Bytes
/
FullTextIndexFieldAttribute.cs
File metadata and controls
35 lines (29 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Text;
using ServiceStack.SearchIndex;
namespace ServiceStack.SearchIndex
{
public class FullTextIndexFieldAttribute : Attribute
{
public FullTextIndexAttribute FieldAttributes { get; private set; }
public string MemberPath { get; set; }
public FullTextIndexFieldAttribute()
:this(FullTextIndexAttribute.StoreUncompressed | FullTextIndexAttribute.IndexTokenized)
{}
public FullTextIndexFieldAttribute(FullTextIndexAttribute fieldAttributes)
{
this.FieldAttributes = fieldAttributes;
}
public FullTextIndexFieldAttribute(FullTextIndexAttribute fieldAttributes, string memberPath)
: this(fieldAttributes)
{
this.MemberPath = memberPath;
}
public FullTextIndexFieldAttribute(string memberTypePropertyName)
: this()
{
this.MemberPath = memberTypePropertyName;
}
}
}