/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/ext/ |
H A D | ExtensionQuery.java | 3 import org.apache.lucene.queryParser.QueryParser; 34 private final QueryParser topLevelParser; 44 public ExtensionQuery(QueryParser topLevelParser, String field, String rawQueryString) { 72 public QueryParser getTopLevelParser() {
|
H A D | ParserExtension.java | 21 import org.apache.lucene.queryParser.QueryParser; 26 * {@link QueryParser}. The {@link QueryParser} is generated by the JavaCC 32 * {@link QueryParser}.
|
H A D | ExtendableQueryParser.java | 22 import org.apache.lucene.queryParser.QueryParser; 39 * yields the same behavior as its super class {@link QueryParser}. Otherwise, 74 public class ExtendableQueryParser extends QueryParser {
|
H A D | Extensions.java | 22 import org.apache.lucene.queryParser.QueryParser; 133 * {@link QueryParser#escape(String)}. 141 return QueryParser.escape(extfield);
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/queryParser/ |
H A D | TestQueryParser.java | 25 * Tests QueryParser. 29 public QueryParser getParser(Analyzer a) throws Exception { 32 QueryParser qp = new QueryParser(TEST_VERSION_CURRENT, "field", a); 33 qp.setDefaultOperator(QueryParser.OR_OPERATOR);
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/queryParser/ |
H A D | TestQueryParser.java | 25 * Tests QueryParser. 29 public QueryParser getParser(Analyzer a) throws Exception { 32 QueryParser qp = new QueryParser(TEST_VERSION_CURRENT, "field", a); 33 qp.setDefaultOperator(QueryParser.OR_OPERATOR);
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/ |
H A D | SimpleQQParser.java | 23 import org.apache.lucene.queryParser.QueryParser; 32 * a Lucene's QueryParser using StandardAnalyzer. */ 37 ThreadLocal<QueryParser> queryParser = new ThreadLocal<QueryParser>(); 62 QueryParser qp = queryParser.get(); 64 qp = new QueryParser(Version.LUCENE_CURRENT, indexField, new StandardAnalyzer(Version.LUCENE_CURRENT)); 69 bq.add(qp.parse(QueryParser.escape(qq.getValue(qqNames[i]))), BooleanClause.Occur.SHOULD);
|
/lucene-3.6.0/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/ |
H A D | UserInputQueryBuilder.java | 5 import org.apache.lucene.queryParser.QueryParser; 32 * 1) Synchronizing access to "parse" calls on a previously supplied QueryParser 34 * 2) creating a new QueryParser object for each parse request 38 QueryParser unSafeParser; 46 public UserInputQueryBuilder(QueryParser parser) { 74 QueryParser parser=createQueryParser(fieldName, analyzer); 86 * Method to create a QueryParser - designed to be overridden 89 * @return QueryParser 91 protected QueryParser createQueryParser(String fieldName, Analyzer analyzer) 93 return new QueryParser(Versio [all...] |
/lucene-3.6.0/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/ |
H A D | CorePlusExtensionsParser.java | 4 import org.apache.lucene.queryParser.QueryParser; 35 * Construct an XML parser that uses a single instance QueryParser for handling 38 * @param parser A QueryParser which will be synchronized on during parse calls. 40 public CorePlusExtensionsParser(Analyzer analyzer, QueryParser parser) 45 * Constructs an XML parser that creates a QueryParser for each UserQuery request. 54 private CorePlusExtensionsParser(String defaultField,Analyzer analyzer, QueryParser parser)
|
H A D | CoreParser.java | 9 import org.apache.lucene.queryParser.QueryParser; 39 protected QueryParser parser; 47 * Construct an XML parser that uses a single instance QueryParser for handling 50 * @param parser A QueryParser which will be synchronized on during parse calls. 52 public CoreParser(Analyzer analyzer, QueryParser parser) 58 * Constructs an XML parser that creates a QueryParser for each UserQuery request. 67 protected CoreParser(String defaultField,Analyzer analyzer, QueryParser parser)
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestNot.java | 24 import org.apache.lucene.queryParser.QueryParser; 49 QueryParser parser = new QueryParser(TEST_VERSION_CURRENT, "field", new MockAnalyzer(random));
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestNot.java | 24 import org.apache.lucene.queryParser.QueryParser; 49 QueryParser parser = new QueryParser(TEST_VERSION_CURRENT, "field", new MockAnalyzer(random));
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ |
H A D | LongToEnglishQueryMaker.java | 26 import org.apache.lucene.queryParser.QueryParser; 37 protected QueryParser parser; 60 parser = new QueryParser(Version.LUCENE_CURRENT, DocMaker.BODY_FIELD, anlzr);
|
H A D | FileBasedQueryMaker.java | 4 import org.apache.lucene.queryParser.QueryParser; 32 * QueryParser. Lines beginning with # are treated as comments 52 QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, defaultField, anlzr);
|
H A D | SimpleQueryMaker.java | 22 import org.apache.lucene.queryParser.QueryParser; 50 QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, DocMaker.BODY_FIELD,anlzr);
|
H A D | EnwikiQueryMaker.java | 27 import org.apache.lucene.queryParser.QueryParser; 95 QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, DocMaker.BODY_FIELD, a);
|
H A D | ReutersQueryMaker.java | 22 import org.apache.lucene.queryParser.QueryParser; 76 QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, DocMaker.BODY_FIELD, a);
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/queryParser/ |
H A D | QueryParserTestBase.java | 68 * Base Test class for QueryParser subclasses 128 * Test QueryParser that does not allow fuzzy or wildcard queries. 130 public static class QPTestParser extends QueryParser { 154 public abstract QueryParser getParser(Analyzer a) throws Exception; 170 public void assertQueryEquals(QueryParser qp, String field, String query, String result) 182 String escapedQuery = QueryParser.escape(query); 191 QueryParser qp = getParser(null); 208 QueryParser qp = getParser(null); 221 QueryParser qp = new QueryParser(TEST_VERSION_CURREN [all...] |
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/queryParser/ |
H A D | QueryParserTestBase.java | 68 * Base Test class for QueryParser subclasses 127 public static class QPTestParser extends QueryParser { 151 public abstract QueryParser getParser(Analyzer a) throws Exception; 167 public void assertQueryEquals(QueryParser qp, String field, String query, String result) 179 String escapedQuery = QueryParser.escape(query); 188 QueryParser qp = getParser(null); 205 QueryParser qp = getParser(null); 218 QueryParser qp = new QueryParser(TEST_VERSION_CURRENT, "field", a); 219 qp.setDefaultOperator(QueryParser [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/surround/query/ |
H A D | ExceptionQueryTst.java | 21 import org.apache.lucene.queryParser.surround.parser.QueryParser; 37 lq = QueryParser.parse(queryText);
|
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/ext/ |
H A D | TestExtendableQueryParser.java | 24 import org.apache.lucene.queryParser.QueryParser; 39 public QueryParser getParser(Analyzer a) throws Exception { 43 public QueryParser getParser(Analyzer a, Extensions extensions) 47 QueryParser qp = extensions == null ? new ExtendableQueryParser( 50 qp.setDefaultOperator(QueryParser.OR_OPERATOR);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/ |
H A D | LuceneQParserPlugin.java | 20 import org.apache.lucene.queryParser.QueryParser; 31 * Parse Solr's variant on the Lucene QueryParser syntax. 72 lparser.setDefaultOperator("AND".equals(opParam) ? QueryParser.Operator.AND : QueryParser.Operator.OR); 75 QueryParser.Operator operator = getReq().getSchema().getSolrQueryParser(null).getDefaultOperator(); 76 lparser.setDefaultOperator(null == operator ? QueryParser.Operator.OR : operator);
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/ |
H A D | TestDemo.java | 29 import org.apache.lucene.queryParser.QueryParser; 64 QueryParser parser = new QueryParser(TEST_VERSION_CURRENT, "fieldname", analyzer);
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/ |
H A D | TestDemo.java | 29 import org.apache.lucene.queryParser.QueryParser; 64 QueryParser parser = new QueryParser(TEST_VERSION_CURRENT, "fieldname", analyzer);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/ |
H A D | FilteringTokenFilter.java | 23 import org.apache.lucene.queryParser.QueryParser; // for javadoc 102 * set {@link QueryParser#setEnablePositionIncrements} if 103 * you use QueryParser to create queries.
|