diff --git a/querydsl-docs/src/main/docbook/content/integration/lucene.xml b/querydsl-docs/src/main/docbook/content/integration/lucene.xml index 7d087b3e0..0048ccc37 100644 --- a/querydsl-docs/src/main/docbook/content/integration/lucene.xml +++ b/querydsl-docs/src/main/docbook/content/integration/lucene.xml @@ -40,7 +40,7 @@ QDocument doc = new QDocument("doc"); IndexSearcher searcher = new IndexSearher(index); LuceneQuery query = new LuceneQuery(LuceneQuery.LOWER_CASE, searcher); -List documents = query.from(doc) +List documents = query .where(doc.year.between("1800", "2000").and(doc.title.startsWith("Huckle")) .list(); ]]> @@ -79,7 +79,7 @@ List documents = query.from(doc) The syntax for declaring ordering is The syntax for declaring a limit is The syntax for declaring an offset is