~ubuntu-branches/ubuntu/trusty/smuxi/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/ServiceStack/src/ServiceStack.Interfaces/SearchIndex/FullTextIndexFieldAttribute.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2013-05-25 22:11:31 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130525221131-nd2mc0kzubuwyx20
Tags: 0.8.11-1
* [22d13d5] Imported Upstream version 0.8.11
* [6d2b95a] Refreshed patches
* [89eb66e] Added ServiceStack libraries to smuxi-engine package
* [848ab10] Enable Campfire engine
* [c6dbdc7] Always build db4o for predictable build result
* [13ec489] Exclude OS X specific libraries from dh_clideps

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Collections.Generic;
 
3
using System.Text;
 
4
using ServiceStack.SearchIndex;
 
5
 
 
6
namespace ServiceStack.SearchIndex
 
7
{
 
8
        public class FullTextIndexFieldAttribute : Attribute
 
9
        {
 
10
                public FullTextIndexAttribute FieldAttributes { get; private set; }
 
11
                public string MemberPath { get; set; }
 
12
 
 
13
                public FullTextIndexFieldAttribute() 
 
14
                                :this(FullTextIndexAttribute.StoreUncompressed | FullTextIndexAttribute.IndexTokenized)
 
15
                {}
 
16
 
 
17
                public FullTextIndexFieldAttribute(FullTextIndexAttribute fieldAttributes)
 
18
                {
 
19
                        this.FieldAttributes = fieldAttributes;
 
20
                }
 
21
 
 
22
                public FullTextIndexFieldAttribute(FullTextIndexAttribute fieldAttributes, string memberPath)
 
23
                                : this(fieldAttributes)
 
24
                {
 
25
                        this.MemberPath = memberPath;
 
26
                }
 
27
 
 
28
                public FullTextIndexFieldAttribute(string memberTypePropertyName)
 
29
                                : this()
 
30
                {
 
31
                        this.MemberPath = memberTypePropertyName;
 
32
                }
 
33
 
 
34
        }
 
35
}
 
 
b'\\ No newline at end of file'