コード例 #1
0
 public ElasticSearchQuery(ElasticSearchSearcher searcher, string category, string[] fields, BooleanOperation op,
                           string indexName) : base(category, new StandardAnalyzer(Version.LUCENE_29), fields,
                                                    EmptyOptions, op)
 {
     _searcher  = searcher;
     _indexName = indexName;
 }
コード例 #2
0
 public ElasticSearchQuery(ElasticSearchSearcher searcher, string category, string[] fields, BooleanOperation op,
                           string indexName) : base(category, new StandardAnalyzer(Version.LUCENE_29), fields,
                                                    EmptyOptions, op)
 {
     _searcher    = searcher;
     _indexName   = indexName;
     _queryParser = new CustomMultiFieldQueryParser(LuceneVersion, fields, new StandardAnalyzer(Version.LUCENE_29));
     _queryParser.AllowLeadingWildcard = true;
 }
コード例 #3
0
 public ElasticSearchQuery(ElasticSearchQuery previous, BooleanOperation op)
     : base(previous.Category, previous.DefaultAnalyzer, previous._searcher.AllFields, EmptyOptions, op)
 {
     _searcher  = previous._searcher;
     _indexName = previous._indexName;
 }