summaryrefslogtreecommitdiffstats
path: root/sample-apps/blog-search/src/main/application/searchdefinitions/blog_post.sd
blob: 0f3c21dffa9058ef2c19b89e6efe46f8e9f53812 (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
search blog_post {
    document blog_post {
        field date_gmt type string {
            indexing: summary
        }
        field language type string {
            indexing: summary
        }

        field author type string {
            indexing: summary
        }

        field url type string {
            indexing: summary
        }

        field title type string {
            indexing: summary | index
        }

	    field blog type string {
	        indexing: summary
	    }

	    field post_id type string {
	        indexing: summary 
	    }

        field tags type array<string> {
            indexing: summary 
        }

        field blogname type string {
            indexing: summary 
        }

        field content type string {
            indexing: summary 
        }

        field categories type array<string> {
            indexing: summary 
        }

    }


    fieldset default {
        fields: title, content
    }

    rank-profile song inherits default {
	    first-phase {
	        expression:nativeRank(title)
        }
    }

}