6120 |
05 Feb 21 |
nicklas |
1 |
package net.sf.basedb.varsearch.query; |
6120 |
05 Feb 21 |
nicklas |
2 |
|
6120 |
05 Feb 21 |
nicklas |
3 |
import org.apache.lucene.index.Term; |
6120 |
05 Feb 21 |
nicklas |
4 |
import org.apache.lucene.search.Query; |
6120 |
05 Feb 21 |
nicklas |
5 |
|
6120 |
05 Feb 21 |
nicklas |
6 |
/** |
6120 |
05 Feb 21 |
nicklas |
Helper implementations for generating queries for |
6120 |
05 Feb 21 |
nicklas |
fields that need special handling. |
6120 |
05 Feb 21 |
nicklas |
9 |
|
6120 |
05 Feb 21 |
nicklas |
@author nicklas |
6120 |
05 Feb 21 |
nicklas |
11 |
*/ |
6121 |
08 Feb 21 |
nicklas |
12 |
public abstract class QueryField |
6120 |
05 Feb 21 |
nicklas |
13 |
{ |
6120 |
05 Feb 21 |
nicklas |
14 |
|
6171 |
18 Mar 21 |
nicklas |
15 |
protected QueryField() |
6171 |
18 Mar 21 |
nicklas |
16 |
{} |
6171 |
18 Mar 21 |
nicklas |
17 |
|
6121 |
08 Feb 21 |
nicklas |
18 |
public Query newTermQuery(Term term) |
6121 |
08 Feb 21 |
nicklas |
19 |
{ |
6121 |
08 Feb 21 |
nicklas |
20 |
return null; |
6121 |
08 Feb 21 |
nicklas |
21 |
} |
6171 |
18 Mar 21 |
nicklas |
22 |
|
6120 |
05 Feb 21 |
nicklas |
23 |
public Query newRangeQuery(String field, String part1, String part2, |
6121 |
08 Feb 21 |
nicklas |
24 |
boolean startInclusive, boolean endInclusive) |
6121 |
08 Feb 21 |
nicklas |
25 |
{ |
6121 |
08 Feb 21 |
nicklas |
26 |
return null; |
6121 |
08 Feb 21 |
nicklas |
27 |
} |
6121 |
08 Feb 21 |
nicklas |
28 |
|
6121 |
08 Feb 21 |
nicklas |
29 |
public Query newWildcardQuery(String field, String termStr) |
6121 |
08 Feb 21 |
nicklas |
30 |
{ |
6121 |
08 Feb 21 |
nicklas |
31 |
return null; |
6121 |
08 Feb 21 |
nicklas |
32 |
} |
6171 |
18 Mar 21 |
nicklas |
33 |
|
6171 |
18 Mar 21 |
nicklas |
34 |
|
6171 |
18 Mar 21 |
nicklas |
35 |
|
6120 |
05 Feb 21 |
nicklas |
36 |
} |