From f528ffacad6edc9ffe33d07f0fb766b203bf9b30 Mon Sep 17 00:00:00 2001 From: Vesa Martilla Date: Mon, 29 Mar 2010 07:13:04 +0000 Subject: [PATCH] Removed .from(doc) from code examples in lucene.xml. --- .../src/main/docbook/content/integration/lucene.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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