|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.index.lucene.LuceneQueryBuilder
public final class LuceneQueryBuilder
A query can have a optional range specifier and an optional blur specifier. The range specifier can be +[range], -[range] or just [range]. This must stand at the beginning of the query and may be surrounded by whitespace. The blur specifier is either ~ or ~n, where ~ means adjacent verses, but ~n means to blur by n verses.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private static Pattern |
BLUR_PATTERN
The pattern of a blur. |
private static Query |
NULL_QUERY
A query that returns nothing. |
private static Pattern |
RANGE_PATTERN
The pattern of a range. |
Constructor Summary | |
---|---|
LuceneQueryBuilder()
|
Method Summary | |
---|---|
Query |
parse(String aSearch)
Construct a query from a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Pattern RANGE_PATTERN
private static final Pattern BLUR_PATTERN
private static final Query NULL_QUERY
Constructor Detail |
---|
public LuceneQueryBuilder()
Method Detail |
---|
public Query parse(String aSearch)
QueryBuilder
parse
in interface QueryBuilder
aSearch
- The text to convert
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |