Searched defs:queries (Results 1 - 23 of 23) sorted by relevance

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/
H A DMultiFieldQueryParserWrapper.java132 * @param queries
141 * if the length of the queries array differs from the length of the
144 public static Query parse(String[] queries, String[] fields, Analyzer analyzer) argument
146 if (queries.length != fields.length)
147 throw new IllegalArgumentException("queries.length != fields.length");
151 Query q = qp.parse(queries[i]);
239 * @param queries
250 * if the length of the queries, fields, and flags array differ
252 public static Query parse(String[] queries, String[] fields, argument
254 if (!(queries
[all...]
H A DQueryParserUtil.java43 * @param queries
50 * if the length of the queries array differs from the length of the
53 public static Query parse(String[] queries, String[] fields, Analyzer analyzer) argument
55 if (queries.length != fields.length)
56 throw new IllegalArgumentException("queries.length != fields.length");
63 Query q = qp.parse(queries[i], fields[i]);
154 * @param queries
163 * if the length of the queries, fields, and flags array differ
165 public static Query parse(String[] queries, String[] fields, argument
167 if (!(queries
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/
H A DAndQuery.java25 public AndQuery(List<SrndQuery> queries, boolean inf, String opName) { argument
26 super(queries, inf, opName);
H A DNotQuery.java25 public NotQuery(List<SrndQuery> queries, String opName) { super(queries, true /* infix */, opName); } argument
H A DOrQuery.java27 public OrQuery(List<SrndQuery> queries, boolean infix, String opName) { argument
28 super(queries, infix, opName);
H A DSrndBooleanQuery.java28 List<Query> queries,
30 for (int i = 0; i < queries.size(); i++) {
31 bq.add( queries.get(i), occur);
36 List<Query> queries,
38 if (queries.size() <= 1) {
39 throw new AssertionError("Too few subqueries: " + queries.size());
42 addQueriesToBoolean(bq, queries.subList(0, queries.size()), occur);
26 addQueriesToBoolean( BooleanQuery bq, List<Query> queries, BooleanClause.Occur occur) argument
35 makeBooleanQuery( List<Query> queries, BooleanClause.Occur occur) argument
H A DDistanceQuery.java32 List<SrndQuery> queries,
37 super(queries, infix, opName);
103 if (sncf.size() == 0) { /* distance operator requires all sub queries */
31 DistanceQuery( List<SrndQuery> queries, boolean infix, int opDistance, String opName, boolean ordered) argument
H A DComposedQuery.java33 protected void recompose(List queries) { argument
34 if (queries.size() < 2) throw new AssertionError("Too few subqueries");
35 this.queries = queries;
41 private List queries; field in class:ComposedQuery
43 public Iterator getSubQueriesIterator() {return queries.listIterator();}
45 public int getNrSubQueries() {return queries.size();}
47 public SrndQuery getSubQuery(int qn) {return (SrndQuery) queries.get(qn);}
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DFrozenBufferedDeletes.java44 final Query[] queries; field in class:FrozenBufferedDeletes
60 queries = new Query[deletes.queries.size()];
61 queryLimits = new int[deletes.queries.size()];
63 for(Map.Entry<Query,Integer> ent : deletes.queries.entrySet()) {
64 queries[upto] = ent.getKey();
69 bytesUsed = (int) terms.getSizeInBytes() + queries.length * BYTES_PER_DEL_QUERY;
92 return upto < queries.length;
97 QueryAndLimit ret = new QueryAndLimit(queries[upto], queryLimits[upto]);
117 if (queries
[all...]
H A DBufferedDeletes.java66 final Map<Query,Integer> queries = new HashMap<Query,Integer>(); field in class:BufferedDeletes
81 + ", queries=" + queries + ", docIDs=" + docIDs + ", bytesUsed="
88 if (queries.size() != 0) {
89 s += " " + queries.size() + " deleted queries";
103 Integer current = queries.put(query, docIDUpto);
137 queries.clear();
149 return terms.size() > 0 || docIDs.size() > 0 || queries.size() > 0;
H A DCoalescedDeletes.java31 final Map<Query,Integer> queries = new HashMap<Query,Integer>(); field in class:CoalescedDeletes
37 return "CoalescedDeletes(termSets=" + iterables.size() + ",queries=" + queries.size() + ")";
43 for(int queryIdx=0;queryIdx<in.queries.length;queryIdx++) {
44 final Query query = in.queries[queryIdx];
45 queries.put(query, BufferedDeletes.MAX_INT);
66 private final Iterator<Map.Entry<Query,Integer>> iter = queries.entrySet().iterator();
H A DDocumentsWriter.java300 boolean deleteQueries(Query... queries) { argument
301 final boolean doFlush = flushControl.waitUpdate(0, queries.length);
303 for (Query query : queries) {
H A DIndexWriter.java873 * queries) term lookup may become a dominant cost.
2251 * Deletes the document(s) matching any of the provided queries.
2258 * @param queries array of queries to identify the documents
2263 public void deleteDocuments(Query... queries) throws CorruptIndexException, IOException { argument
2266 if (docWriter.deleteQueries(queries)) {
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/
H A DAbstractQueryMaker.java28 protected Query[] queries; field in class:AbstractQueryMaker
39 queries = prepareQueries();
45 if (queries != null) {
46 for (int i = 0; i < queries.length; i++) {
47 sb.append(i+". "+ queries[i].getClass().getSimpleName()+" - "+queries[i].toString());
55 return queries[nextQnum()];
61 qnum = (qnum+1) % queries.length;
/lucene-3.6.0/lucene/contrib/memory/src/test/org/apache/lucene/index/memory/
H A DMemoryIndexTest.java54 * returning the same results for queries on some randomish indexes.
57 private Set<String> queries = new HashSet<String>(); field in class:MemoryIndexTest
64 queries.addAll(readQueries("testqueries.txt"));
65 queries.addAll(readQueries("testqueries2.txt"));
69 * read a set of queries from a resource file
72 Set<String> queries = new HashSet<String>();
79 queries.add(line);
82 return queries;
96 * and run all the queries against it.
146 * Run all queries agains
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DQuery.java29 /** The abstract base class for queries.
44 <p>A parser for queries is contained in:
74 * <li>Some of the more complicated queries (e.g. span queries)
90 * Only implemented by primitive queries, which re-write to themselves.
107 /** Expert: called to re-write queries into primitive queries. For example,
116 /** Expert: called when re-writing queries under MultiSearcher.
119 * correspondence with queries). This is an optimization of the OR of
120 * all queries
127 combine(Query[] queries) argument
179 mergeBooleanQueries(BooleanQuery... queries) argument
[all...]
H A DNRTManager.java199 public long deleteDocuments(Query... queries) throws IOException { argument
200 writer.deleteDocuments(queries);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/
H A DMultiFieldQueryParser.java33 * A QueryParser which constructs queries to search multiple fields.
228 * @param queries Queries strings to parse
232 * @throws IllegalArgumentException if the length of the queries array differs
235 public static Query parse(Version matchVersion, String[] queries, String[] fields, argument
238 if (queries.length != fields.length)
239 throw new IllegalArgumentException("queries.length != fields.length");
244 Query q = qp.parse(queries[i]);
324 * @param queries Queries string to parse
329 * @throws IllegalArgumentException if the length of the queries, fields,
332 public static Query parse(Version matchVersion, String[] queries, Strin argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DQueryParsing.java135 // note to self: something needs to detect infinite recursion when parsing queries
322 // A QParser that's not for function queries.
517 // of queries too, depending on future syntax.
890 public static List<String> toString(List<Query> queries, IndexSchema schema) { argument
891 List<String> out = new ArrayList<String>(queries.size());
892 for (Query q : queries) {
H A DSolrIndexSearcher.java588 * This method can handle negative queries.
621 // cache negative queries as positive
628 // only handle positive (non negative) queries
641 // only handle positive (non negative) queries
672 * Returns the set of document ids matching all queries.
675 * This method can handle negative queries.
679 public DocSet getDocSet(List<Query> queries) throws IOException { argument
680 ProcessedFilter pf = getProcessedFilter(null, queries);
729 public ProcessedFilter getProcessedFilter(DocSet setFilter, List<Query> queries) throws IOException { argument
731 if (queries
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/grouping/
H A DGroupingSpecification.java31 private String[] queries = new String[]{}; field in class:GroupingSpecification
57 return queries;
60 public void setQueries(String[] queries) { argument
61 if (queries == null) {
65 this.queries = queries;
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/parser/
H A DQueryParser.java66 protected SrndQuery getOrQuery(List<SrndQuery> queries, boolean infix, Token orToken) { argument
67 return new OrQuery(queries, infix, orToken.image);
70 protected SrndQuery getAndQuery(List<SrndQuery> queries, boolean infix, Token andToken) { argument
71 return new AndQuery( queries, infix, andToken.image);
74 protected SrndQuery getNotQuery(List<SrndQuery> queries, Token notToken) { argument
75 return new NotQuery( queries, notToken.image);
94 List<SrndQuery> queries,
98 DistanceQuery dq = new DistanceQuery(queries,
178 ArrayList<SrndQuery> queries = null;
193 if (queries
93 getDistanceQuery( List<SrndQuery> queries, boolean infix, Token dToken, boolean ordered) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/
H A DSolrPluginUtils.java706 * Recursively walks the "from" query pulling out sub-queries and
764 * input. Some examples of illegal user queries are: "chocolate +-
858 /* we might not get any valid queries from delegation,
921 * @return null if no filter queries
929 * @return null if no queries are generated
932 String[] queries) throws ParseException {
933 if (null == queries || 0 == queries.length) return null;
934 List<Query> out = new ArrayList<Query>(queries.length);
935 for (String q : queries) {
931 parseQueryStrings(SolrQueryRequest req, String[] queries) argument
[all...]

Completed in 286 milliseconds