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; }
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; }
public ElasticSearchQuery(ElasticSearchQuery previous, BooleanOperation op) : base(previous.Category, previous.DefaultAnalyzer, previous._searcher.AllFields, EmptyOptions, op) { _searcher = previous._searcher; _indexName = previous._indexName; }