Skip to content

Commit

Permalink
Fix clippy::needless_doctest_main lint
Browse files Browse the repository at this point in the history
  • Loading branch information
buinauskas committed Nov 20, 2023
1 parent 6aa7aa8 commit 01db490
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,32 @@
//! ```rust
//! use elasticsearch_dsl::*;
//!
//! fn main() {
//! let query = Search::new()
//! .source(false)
//! .stats("statistics")
//! .from(0)
//! .size(30)
//! .query(
//! Query::bool()
//! .must(Query::multi_match(
//! ["title", "description"],
//! "you know, for search",
//! ))
//! .filter(Query::terms("tags", ["elasticsearch"]))
//! .should(Query::term("verified", true).boost(10)),
//! )
//! .aggregate(
//! "country_ids",
//! Aggregation::terms("country_id")
//! .aggregate("catalog_ids", Aggregation::terms("catalog_id"))
//! .aggregate("company_ids", Aggregation::terms("company_id"))
//! .aggregate(
//! "top1",
//! Aggregation::top_hits()
//! .size(1)
//! .sort(FieldSort::ascending("user_id")),
//! ),
//! ).rescore(Rescore::new(Query::term("field", 1)).query_weight(1.2));
//! }
//! let query = Search::new()
//! .source(false)
//! .stats("statistics")
//! .from(0)
//! .size(30)
//! .query(
//! Query::bool()
//! .must(Query::multi_match(
//! ["title", "description"],
//! "you know, for search",
//! ))
//! .filter(Query::terms("tags", ["elasticsearch"]))
//! .should(Query::term("verified", true).boost(10)),
//! )
//! .aggregate(
//! "country_ids",
//! Aggregation::terms("country_id")
//! .aggregate("catalog_ids", Aggregation::terms("catalog_id"))
//! .aggregate("company_ids", Aggregation::terms("company_id"))
//! .aggregate(
//! "top1",
//! Aggregation::top_hits()
//! .size(1)
//! .sort(FieldSort::ascending("user_id")),
//! ),
//! ).rescore(Rescore::new(Query::term("field", 1)).query_weight(1.2));
//! ```
//!
//! See examples for more.
Expand Down

0 comments on commit 01db490

Please sign in to comment.