Searched refs:QueryParser (Results 1 - 25 of 91) sorted by relevance

1234

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/ext/
H A DExtensionQuery.java3 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 DParserExtension.java21 import org.apache.lucene.queryParser.QueryParser;
26 * {@link QueryParser}. The {@link QueryParser} is generated by the JavaCC
32 * {@link QueryParser}.
H A DExtendableQueryParser.java22 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 DExtensions.java22 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 DTestQueryParser.java25 * 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 DTestQueryParser.java25 * 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 DSimpleQQParser.java23 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 DUserInputQueryBuilder.java5 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 DCorePlusExtensionsParser.java4 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 DCoreParser.java9 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 DTestNot.java24 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 DTestNot.java24 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 DLongToEnglishQueryMaker.java26 import org.apache.lucene.queryParser.QueryParser;
37 protected QueryParser parser;
60 parser = new QueryParser(Version.LUCENE_CURRENT, DocMaker.BODY_FIELD, anlzr);
H A DFileBasedQueryMaker.java4 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 DSimpleQueryMaker.java22 import org.apache.lucene.queryParser.QueryParser;
50 QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, DocMaker.BODY_FIELD,anlzr);
H A DEnwikiQueryMaker.java27 import org.apache.lucene.queryParser.QueryParser;
95 QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, DocMaker.BODY_FIELD, a);
H A DReutersQueryMaker.java22 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 DQueryParserTestBase.java68 * 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 DQueryParserTestBase.java68 * 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 DExceptionQueryTst.java21 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 DTestExtendableQueryParser.java24 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 DLuceneQParserPlugin.java20 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 DTestDemo.java29 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 DTestDemo.java29 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 DFilteringTokenFilter.java23 import org.apache.lucene.queryParser.QueryParser; // for javadoc
102 * set {@link QueryParser#setEnablePositionIncrements} if
103 * you use QueryParser to create queries.

Completed in 1205 milliseconds

1234