mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-21 21:14:12 +08:00
Changed LuceneQuery(LuceneQuery.LOWER_CASE... to LuceneQuery(true... in lucene.xml.
This commit is contained in:
parent
a83d26ab66
commit
9bf97d1718
@ -39,7 +39,7 @@ public class QDocument extends PEntity<Document>{
|
||||
QDocument doc = new QDocument("doc");
|
||||
|
||||
IndexSearcher searcher = new IndexSearher(index);
|
||||
LuceneQuery query = new LuceneQuery(LuceneQuery.LOWER_CASE, searcher);
|
||||
LuceneQuery query = new LuceneQuery(true, searcher);
|
||||
List<Document> documents = query
|
||||
.where(doc.year.between("1800", "2000").and(doc.title.startsWith("Huckle"))
|
||||
.list();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user