コード例 #1
0
            public Products_ByName()
            {
                Map = products => from product in products
                      select new
                {
                    product.Name
                };

                Sort(x => x.Name, SortOptions.String);

                Analyzers.Add(x => x.Name, "Raven.Database.Indexing.Collation.Cultures.SvCollationAnalyzer, Raven.Database");
            }
コード例 #2
0
            public BlogPosts_ByTagsAndContent()
            {
                Map = posts => from post in posts
                      select new
                {
                    post.Tags,
                    post.Content
                };

                Analyzers.Add(x => x.Tags, "SimpleAnalyzer");
                Analyzers.Add(x => x.Content, typeof(SnowballAnalyzer).AssemblyQualifiedName);
            }
コード例 #3
0
            public BlogPosts_ByTagsAndContent()
            {
                Map = posts => from post in posts
                      select new
                {
                    post.Tags,
                    post.Content
                };

                Analyzers.Add(x => x.Tags, typeof(SimpleAnalyzer).FullName);
                Analyzers.Add(x => x.Content, typeof(SnowballAnalyzer).FullName);
            }