예제 #1
0
            public Products_ByName()
            {
                Map = products => from product in products
                      select new
                {
                    product.Name
                };

                Analyzers.Add(x => x.Name, "Raven.Server.Documents.Indexes.Persistence.Lucene.Analyzers.Collation.Cultures.SvCollationAnalyzer, Raven.Server");
            }
예제 #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 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");
            }
예제 #4
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);
            }