1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
2 | <!--NewPage--> |
---|
3 | <HTML> |
---|
4 | <HEAD> |
---|
5 | <!-- Generated by javadoc (build 1.6.0_24) on Mon Jun 25 15:26:25 EDT 2012 --> |
---|
6 | <META http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
7 | <TITLE> |
---|
8 | QueryParsing (Solr 4.0.0-ALPHA API) |
---|
9 | </TITLE> |
---|
10 | |
---|
11 | <META NAME="date" CONTENT="2012-06-25"> |
---|
12 | |
---|
13 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
14 | |
---|
15 | <SCRIPT type="text/javascript"> |
---|
16 | function windowTitle() |
---|
17 | { |
---|
18 | if (location.href.indexOf('is-external=true') == -1) { |
---|
19 | parent.document.title="QueryParsing (Solr 4.0.0-ALPHA API)"; |
---|
20 | } |
---|
21 | } |
---|
22 | </SCRIPT> |
---|
23 | <NOSCRIPT> |
---|
24 | </NOSCRIPT> |
---|
25 | |
---|
26 | </HEAD> |
---|
27 | |
---|
28 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
29 | <HR> |
---|
30 | |
---|
31 | |
---|
32 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
33 | <A NAME="navbar_top"><!-- --></A> |
---|
34 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
35 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
36 | <TR> |
---|
37 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
38 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
39 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
40 | <TR ALIGN="center" VALIGN="top"> |
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
43 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/QueryParsing.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
48 | </TR> |
---|
49 | </TABLE> |
---|
50 | </TD> |
---|
51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
52 | </EM> |
---|
53 | </TD> |
---|
54 | </TR> |
---|
55 | |
---|
56 | <TR> |
---|
57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
58 | <A HREF="../../../../org/apache/solr/search/QParserPlugin.html" title="class in org.apache.solr.search"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../org/apache/solr/search/QueryParsing.StrParser.html" title="class in org.apache.solr.search"><B>NEXT CLASS</B></A></FONT></TD> |
---|
60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
61 | <A HREF="../../../../index.html?org/apache/solr/search/QueryParsing.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="QueryParsing.html" target="_top"><B>NO FRAMES</B></A> |
---|
63 | <SCRIPT type="text/javascript"> |
---|
64 | <!-- |
---|
65 | if(window==top) { |
---|
66 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
67 | } |
---|
68 | //--> |
---|
69 | </SCRIPT> |
---|
70 | <NOSCRIPT> |
---|
71 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
72 | </NOSCRIPT> |
---|
73 | |
---|
74 | |
---|
75 | </FONT></TD> |
---|
76 | </TR> |
---|
77 | <TR> |
---|
78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
79 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
81 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
82 | </TR> |
---|
83 | </TABLE> |
---|
84 | <A NAME="skip-navbar_top"></A> |
---|
85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
86 | |
---|
87 | <HR> |
---|
88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
89 | <H2> |
---|
90 | <FONT SIZE="-1"> |
---|
91 | org.apache.solr.search</FONT> |
---|
92 | <BR> |
---|
93 | Class QueryParsing</H2> |
---|
94 | <PRE> |
---|
95 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
96 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.search.QueryParsing</B> |
---|
97 | </PRE> |
---|
98 | <HR> |
---|
99 | <DL> |
---|
100 | <DT><PRE>public class <B>QueryParsing</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
---|
101 | </PRE> |
---|
102 | |
---|
103 | <P> |
---|
104 | Collection of static utilities useful for query parsing. |
---|
105 | <P> |
---|
106 | |
---|
107 | <P> |
---|
108 | <HR> |
---|
109 | |
---|
110 | <P> |
---|
111 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
112 | |
---|
113 | <A NAME="nested_class_summary"><!-- --></A> |
---|
114 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
115 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
116 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
117 | <B>Nested Class Summary</B></FONT></TH> |
---|
118 | </TR> |
---|
119 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
120 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
121 | <CODE>static class</CODE></FONT></TD> |
---|
122 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.StrParser.html" title="class in org.apache.solr.search">QueryParsing.StrParser</A></B></CODE> |
---|
123 | |
---|
124 | <BR> |
---|
125 | Simple class to help with parsing a string |
---|
126 | <b>Note: This API is experimental and may change in non backward-compatible ways in the future</b></TD> |
---|
127 | </TR> |
---|
128 | </TABLE> |
---|
129 | <!-- =========== FIELD SUMMARY =========== --> |
---|
130 | |
---|
131 | <A NAME="field_summary"><!-- --></A> |
---|
132 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
133 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
134 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
135 | <B>Field Summary</B></FONT></TH> |
---|
136 | </TR> |
---|
137 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
138 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
139 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
140 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#DEFTYPE">DEFTYPE</A></B></CODE> |
---|
141 | |
---|
142 | <BR> |
---|
143 | </TD> |
---|
144 | </TR> |
---|
145 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
146 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
147 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
148 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#DOCID">DOCID</A></B></CODE> |
---|
149 | |
---|
150 | <BR> |
---|
151 | </TD> |
---|
152 | </TR> |
---|
153 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
154 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
155 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
156 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#F">F</A></B></CODE> |
---|
157 | |
---|
158 | <BR> |
---|
159 | </TD> |
---|
160 | </TR> |
---|
161 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
162 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
163 | <CODE>static char</CODE></FONT></TD> |
---|
164 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#LOCALPARAM_END">LOCALPARAM_END</A></B></CODE> |
---|
165 | |
---|
166 | <BR> |
---|
167 | </TD> |
---|
168 | </TR> |
---|
169 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
170 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
171 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
172 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#LOCALPARAM_START">LOCALPARAM_START</A></B></CODE> |
---|
173 | |
---|
174 | <BR> |
---|
175 | </TD> |
---|
176 | </TR> |
---|
177 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
178 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
179 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
180 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#OP">OP</A></B></CODE> |
---|
181 | |
---|
182 | <BR> |
---|
183 | </TD> |
---|
184 | </TR> |
---|
185 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
186 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
187 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
188 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#SCORE">SCORE</A></B></CODE> |
---|
189 | |
---|
190 | <BR> |
---|
191 | </TD> |
---|
192 | </TR> |
---|
193 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
195 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
196 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#TYPE">TYPE</A></B></CODE> |
---|
197 | |
---|
198 | <BR> |
---|
199 | </TD> |
---|
200 | </TR> |
---|
201 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
202 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
203 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
204 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#V">V</A></B></CODE> |
---|
205 | |
---|
206 | <BR> |
---|
207 | </TD> |
---|
208 | </TR> |
---|
209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
211 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
212 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#VAL_EXPLICIT">VAL_EXPLICIT</A></B></CODE> |
---|
213 | |
---|
214 | <BR> |
---|
215 | </TD> |
---|
216 | </TR> |
---|
217 | </TABLE> |
---|
218 | |
---|
219 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
220 | |
---|
221 | <A NAME="constructor_summary"><!-- --></A> |
---|
222 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
223 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
224 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
225 | <B>Constructor Summary</B></FONT></TH> |
---|
226 | </TR> |
---|
227 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
228 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#QueryParsing()">QueryParsing</A></B>()</CODE> |
---|
229 | |
---|
230 | <BR> |
---|
231 | </TD> |
---|
232 | </TR> |
---|
233 | </TABLE> |
---|
234 | |
---|
235 | <!-- ========== METHOD SUMMARY =========== --> |
---|
236 | |
---|
237 | <A NAME="method_summary"><!-- --></A> |
---|
238 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
239 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
240 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
241 | <B>Method Summary</B></FONT></TH> |
---|
242 | </TR> |
---|
243 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
244 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
245 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
246 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#encodeLocalParamVal(java.lang.String)">encodeLocalParamVal</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> val)</CODE> |
---|
247 | |
---|
248 | <BR> |
---|
249 | </TD> |
---|
250 | </TR> |
---|
251 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
252 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
253 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
254 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#getDefaultField(org.apache.solr.schema.IndexSchema, java.lang.String)">getDefaultField</A></B>(<A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> s, |
---|
255 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> df)</CODE> |
---|
256 | |
---|
257 | <BR> |
---|
258 | Returns the effective default field based on the 'df' param or |
---|
259 | hardcoded schema default.</TD> |
---|
260 | </TR> |
---|
261 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
262 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
263 | <CODE>static <A HREF="../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A></CODE></FONT></TD> |
---|
264 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#getLocalParams(java.lang.String, org.apache.solr.common.params.SolrParams)">getLocalParams</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> txt, |
---|
265 | <A HREF="../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A> params)</CODE> |
---|
266 | |
---|
267 | <BR> |
---|
268 | "foo" returns null |
---|
269 | "{!prefix f=myfield}yes" returns type="prefix",f="myfield",v="yes" |
---|
270 | "{!prefix f=myfield v=$p}" returns type="prefix",f="myfield",v=params.get("p")</TD> |
---|
271 | </TR> |
---|
272 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
273 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
274 | <CODE>static <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/QueryParser.Operator.html?is-external=true" title="class or interface in org.apache.lucene.queryparser.classic">QueryParser.Operator</A></CODE></FONT></TD> |
---|
275 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#getQueryParserDefaultOperator(org.apache.solr.schema.IndexSchema, java.lang.String)">getQueryParserDefaultOperator</A></B>(<A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> sch, |
---|
276 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> override)</CODE> |
---|
277 | |
---|
278 | <BR> |
---|
279 | Returns the "preferred" default operator for use by Query Parsers, |
---|
280 | based on the settings in the IndexSchema which may be overridden using |
---|
281 | an optional String override value.</TD> |
---|
282 | </TR> |
---|
283 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
284 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
285 | <CODE>static int</CODE></FONT></TD> |
---|
286 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#parseLocalParams(java.lang.String, int, java.util.Map, org.apache.solr.common.params.SolrParams)">parseLocalParams</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> txt, |
---|
287 | int start, |
---|
288 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> target, |
---|
289 | <A HREF="../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A> params)</CODE> |
---|
290 | |
---|
291 | <BR> |
---|
292 | </TD> |
---|
293 | </TR> |
---|
294 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
295 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
296 | <CODE>static int</CODE></FONT></TD> |
---|
297 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#parseLocalParams(java.lang.String, int, java.util.Map, org.apache.solr.common.params.SolrParams, java.lang.String, char)">parseLocalParams</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> txt, |
---|
298 | int start, |
---|
299 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> target, |
---|
300 | <A HREF="../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A> params, |
---|
301 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> startString, |
---|
302 | char endChar)</CODE> |
---|
303 | |
---|
304 | <BR> |
---|
305 | </TD> |
---|
306 | </TR> |
---|
307 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
308 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
309 | <CODE>static <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Sort.html?is-external=true" title="class or interface in org.apache.lucene.search">Sort</A></CODE></FONT></TD> |
---|
310 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#parseSort(java.lang.String, org.apache.solr.request.SolrQueryRequest)">parseSort</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> sortSpec, |
---|
311 | <A HREF="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A> req)</CODE> |
---|
312 | |
---|
313 | <BR> |
---|
314 | Returns null if the sortSpec is the standard sort desc.</TD> |
---|
315 | </TR> |
---|
316 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
317 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
318 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> |
---|
319 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#toString(java.util.List, org.apache.solr.schema.IndexSchema)">toString</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">Query</A>> queries, |
---|
320 | <A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> schema)</CODE> |
---|
321 | |
---|
322 | <BR> |
---|
323 | Builds a list of String which are stringified versions of a list of Queries</TD> |
---|
324 | </TR> |
---|
325 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
326 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
327 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
328 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#toString(org.apache.lucene.search.Query, org.apache.solr.schema.IndexSchema)">toString</A></B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">Query</A> query, |
---|
329 | <A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> schema)</CODE> |
---|
330 | |
---|
331 | <BR> |
---|
332 | Formats a Query for debugging, using the IndexSchema to make |
---|
333 | complex field types readable.</TD> |
---|
334 | </TR> |
---|
335 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
336 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
337 | <CODE>static void</CODE></FONT></TD> |
---|
338 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/QueryParsing.html#toString(org.apache.lucene.search.Query, org.apache.solr.schema.IndexSchema, java.lang.Appendable, int)">toString</A></B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">Query</A> query, |
---|
339 | <A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> schema, |
---|
340 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</A> out, |
---|
341 | int flags)</CODE> |
---|
342 | |
---|
343 | <BR> |
---|
344 | </TD> |
---|
345 | </TR> |
---|
346 | </TABLE> |
---|
347 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
348 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
349 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
350 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
351 | </TR> |
---|
352 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
353 | <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
354 | </TR> |
---|
355 | </TABLE> |
---|
356 | |
---|
357 | <P> |
---|
358 | |
---|
359 | <!-- ============ FIELD DETAIL =========== --> |
---|
360 | |
---|
361 | <A NAME="field_detail"><!-- --></A> |
---|
362 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
363 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
364 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
365 | <B>Field Detail</B></FONT></TH> |
---|
366 | </TR> |
---|
367 | </TABLE> |
---|
368 | |
---|
369 | <A NAME="OP"><!-- --></A><H3> |
---|
370 | OP</H3> |
---|
371 | <PRE> |
---|
372 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>OP</B></PRE> |
---|
373 | <DL> |
---|
374 | <DL> |
---|
375 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.OP">Constant Field Values</A></DL> |
---|
376 | </DL> |
---|
377 | <HR> |
---|
378 | |
---|
379 | <A NAME="V"><!-- --></A><H3> |
---|
380 | V</H3> |
---|
381 | <PRE> |
---|
382 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>V</B></PRE> |
---|
383 | <DL> |
---|
384 | <DL> |
---|
385 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.V">Constant Field Values</A></DL> |
---|
386 | </DL> |
---|
387 | <HR> |
---|
388 | |
---|
389 | <A NAME="F"><!-- --></A><H3> |
---|
390 | F</H3> |
---|
391 | <PRE> |
---|
392 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>F</B></PRE> |
---|
393 | <DL> |
---|
394 | <DL> |
---|
395 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.F">Constant Field Values</A></DL> |
---|
396 | </DL> |
---|
397 | <HR> |
---|
398 | |
---|
399 | <A NAME="TYPE"><!-- --></A><H3> |
---|
400 | TYPE</H3> |
---|
401 | <PRE> |
---|
402 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>TYPE</B></PRE> |
---|
403 | <DL> |
---|
404 | <DL> |
---|
405 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.TYPE">Constant Field Values</A></DL> |
---|
406 | </DL> |
---|
407 | <HR> |
---|
408 | |
---|
409 | <A NAME="DEFTYPE"><!-- --></A><H3> |
---|
410 | DEFTYPE</H3> |
---|
411 | <PRE> |
---|
412 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>DEFTYPE</B></PRE> |
---|
413 | <DL> |
---|
414 | <DL> |
---|
415 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.DEFTYPE">Constant Field Values</A></DL> |
---|
416 | </DL> |
---|
417 | <HR> |
---|
418 | |
---|
419 | <A NAME="LOCALPARAM_START"><!-- --></A><H3> |
---|
420 | LOCALPARAM_START</H3> |
---|
421 | <PRE> |
---|
422 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>LOCALPARAM_START</B></PRE> |
---|
423 | <DL> |
---|
424 | <DL> |
---|
425 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.LOCALPARAM_START">Constant Field Values</A></DL> |
---|
426 | </DL> |
---|
427 | <HR> |
---|
428 | |
---|
429 | <A NAME="LOCALPARAM_END"><!-- --></A><H3> |
---|
430 | LOCALPARAM_END</H3> |
---|
431 | <PRE> |
---|
432 | public static final char <B>LOCALPARAM_END</B></PRE> |
---|
433 | <DL> |
---|
434 | <DL> |
---|
435 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.LOCALPARAM_END">Constant Field Values</A></DL> |
---|
436 | </DL> |
---|
437 | <HR> |
---|
438 | |
---|
439 | <A NAME="DOCID"><!-- --></A><H3> |
---|
440 | DOCID</H3> |
---|
441 | <PRE> |
---|
442 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>DOCID</B></PRE> |
---|
443 | <DL> |
---|
444 | <DL> |
---|
445 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.DOCID">Constant Field Values</A></DL> |
---|
446 | </DL> |
---|
447 | <HR> |
---|
448 | |
---|
449 | <A NAME="SCORE"><!-- --></A><H3> |
---|
450 | SCORE</H3> |
---|
451 | <PRE> |
---|
452 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>SCORE</B></PRE> |
---|
453 | <DL> |
---|
454 | <DL> |
---|
455 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.SCORE">Constant Field Values</A></DL> |
---|
456 | </DL> |
---|
457 | <HR> |
---|
458 | |
---|
459 | <A NAME="VAL_EXPLICIT"><!-- --></A><H3> |
---|
460 | VAL_EXPLICIT</H3> |
---|
461 | <PRE> |
---|
462 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>VAL_EXPLICIT</B></PRE> |
---|
463 | <DL> |
---|
464 | <DL> |
---|
465 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.search.QueryParsing.VAL_EXPLICIT">Constant Field Values</A></DL> |
---|
466 | </DL> |
---|
467 | |
---|
468 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
469 | |
---|
470 | <A NAME="constructor_detail"><!-- --></A> |
---|
471 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
472 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
473 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
474 | <B>Constructor Detail</B></FONT></TH> |
---|
475 | </TR> |
---|
476 | </TABLE> |
---|
477 | |
---|
478 | <A NAME="QueryParsing()"><!-- --></A><H3> |
---|
479 | QueryParsing</H3> |
---|
480 | <PRE> |
---|
481 | public <B>QueryParsing</B>()</PRE> |
---|
482 | <DL> |
---|
483 | </DL> |
---|
484 | |
---|
485 | <!-- ============ METHOD DETAIL ========== --> |
---|
486 | |
---|
487 | <A NAME="method_detail"><!-- --></A> |
---|
488 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
489 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
490 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
491 | <B>Method Detail</B></FONT></TH> |
---|
492 | </TR> |
---|
493 | </TABLE> |
---|
494 | |
---|
495 | <A NAME="getQueryParserDefaultOperator(org.apache.solr.schema.IndexSchema, java.lang.String)"><!-- --></A><H3> |
---|
496 | getQueryParserDefaultOperator</H3> |
---|
497 | <PRE> |
---|
498 | public static <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/QueryParser.Operator.html?is-external=true" title="class or interface in org.apache.lucene.queryparser.classic">QueryParser.Operator</A> <B>getQueryParserDefaultOperator</B>(<A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> sch, |
---|
499 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> override)</PRE> |
---|
500 | <DL> |
---|
501 | <DD>Returns the "preferred" default operator for use by Query Parsers, |
---|
502 | based on the settings in the IndexSchema which may be overridden using |
---|
503 | an optional String override value. |
---|
504 | <P> |
---|
505 | <DD><DL> |
---|
506 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/schema/IndexSchema.html#getQueryParserDefaultOperator()"><CODE>IndexSchema.getQueryParserDefaultOperator()</CODE></A>, |
---|
507 | <A HREF="../../../../org/apache/solr/search/QueryParsing.html#OP"><CODE>OP</CODE></A></DL> |
---|
508 | </DD> |
---|
509 | </DL> |
---|
510 | <HR> |
---|
511 | |
---|
512 | <A NAME="getDefaultField(org.apache.solr.schema.IndexSchema, java.lang.String)"><!-- --></A><H3> |
---|
513 | getDefaultField</H3> |
---|
514 | <PRE> |
---|
515 | public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getDefaultField</B>(<A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> s, |
---|
516 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> df)</PRE> |
---|
517 | <DL> |
---|
518 | <DD>Returns the effective default field based on the 'df' param or |
---|
519 | hardcoded schema default. May be null if either exists specified. |
---|
520 | <P> |
---|
521 | <DD><DL> |
---|
522 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/common/params/CommonParams.html#DF"><CODE>CommonParams.DF</CODE></A>, |
---|
523 | <A HREF="../../../../org/apache/solr/schema/IndexSchema.html#getDefaultSearchFieldName()"><CODE>IndexSchema.getDefaultSearchFieldName()</CODE></A></DL> |
---|
524 | </DD> |
---|
525 | </DL> |
---|
526 | <HR> |
---|
527 | |
---|
528 | <A NAME="parseLocalParams(java.lang.String, int, java.util.Map, org.apache.solr.common.params.SolrParams)"><!-- --></A><H3> |
---|
529 | parseLocalParams</H3> |
---|
530 | <PRE> |
---|
531 | public static int <B>parseLocalParams</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> txt, |
---|
532 | int start, |
---|
533 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> target, |
---|
534 | <A HREF="../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A> params) |
---|
535 | throws <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/ParseException.html?is-external=true" title="class or interface in org.apache.lucene.queryparser.classic">ParseException</A></PRE> |
---|
536 | <DL> |
---|
537 | <DD><DL> |
---|
538 | |
---|
539 | <DT><B>Throws:</B> |
---|
540 | <DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/ParseException.html?is-external=true" title="class or interface in org.apache.lucene.queryparser.classic">ParseException</A></CODE></DL> |
---|
541 | </DD> |
---|
542 | </DL> |
---|
543 | <HR> |
---|
544 | |
---|
545 | <A NAME="parseLocalParams(java.lang.String, int, java.util.Map, org.apache.solr.common.params.SolrParams, java.lang.String, char)"><!-- --></A><H3> |
---|
546 | parseLocalParams</H3> |
---|
547 | <PRE> |
---|
548 | public static int <B>parseLocalParams</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> txt, |
---|
549 | int start, |
---|
550 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> target, |
---|
551 | <A HREF="../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A> params, |
---|
552 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> startString, |
---|
553 | char endChar) |
---|
554 | throws <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/ParseException.html?is-external=true" title="class or interface in org.apache.lucene.queryparser.classic">ParseException</A></PRE> |
---|
555 | <DL> |
---|
556 | <DD><DL> |
---|
557 | |
---|
558 | <DT><B>Throws:</B> |
---|
559 | <DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/ParseException.html?is-external=true" title="class or interface in org.apache.lucene.queryparser.classic">ParseException</A></CODE></DL> |
---|
560 | </DD> |
---|
561 | </DL> |
---|
562 | <HR> |
---|
563 | |
---|
564 | <A NAME="encodeLocalParamVal(java.lang.String)"><!-- --></A><H3> |
---|
565 | encodeLocalParamVal</H3> |
---|
566 | <PRE> |
---|
567 | public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>encodeLocalParamVal</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> val)</PRE> |
---|
568 | <DL> |
---|
569 | <DD><DL> |
---|
570 | </DL> |
---|
571 | </DD> |
---|
572 | </DL> |
---|
573 | <HR> |
---|
574 | |
---|
575 | <A NAME="getLocalParams(java.lang.String, org.apache.solr.common.params.SolrParams)"><!-- --></A><H3> |
---|
576 | getLocalParams</H3> |
---|
577 | <PRE> |
---|
578 | public static <A HREF="../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A> <B>getLocalParams</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> txt, |
---|
579 | <A HREF="../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A> params) |
---|
580 | throws <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/ParseException.html?is-external=true" title="class or interface in org.apache.lucene.queryparser.classic">ParseException</A></PRE> |
---|
581 | <DL> |
---|
582 | <DD>"foo" returns null |
---|
583 | "{!prefix f=myfield}yes" returns type="prefix",f="myfield",v="yes" |
---|
584 | "{!prefix f=myfield v=$p}" returns type="prefix",f="myfield",v=params.get("p") |
---|
585 | <P> |
---|
586 | <DD><DL> |
---|
587 | |
---|
588 | <DT><B>Throws:</B> |
---|
589 | <DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/ParseException.html?is-external=true" title="class or interface in org.apache.lucene.queryparser.classic">ParseException</A></CODE></DL> |
---|
590 | </DD> |
---|
591 | </DL> |
---|
592 | <HR> |
---|
593 | |
---|
594 | <A NAME="parseSort(java.lang.String, org.apache.solr.request.SolrQueryRequest)"><!-- --></A><H3> |
---|
595 | parseSort</H3> |
---|
596 | <PRE> |
---|
597 | public static <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Sort.html?is-external=true" title="class or interface in org.apache.lucene.search">Sort</A> <B>parseSort</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> sortSpec, |
---|
598 | <A HREF="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A> req)</PRE> |
---|
599 | <DL> |
---|
600 | <DD>Returns null if the sortSpec is the standard sort desc. |
---|
601 | <p/> |
---|
602 | <p> |
---|
603 | The form of the sort specification string currently parsed is: |
---|
604 | </p> |
---|
605 | <pre>> |
---|
606 | SortSpec ::= SingleSort [, SingleSort]* |
---|
607 | SingleSort ::= <fieldname> SortDirection |
---|
608 | SortDirection ::= top | desc | bottom | asc |
---|
609 | </pre> |
---|
610 | Examples: |
---|
611 | <pre> |
---|
612 | score desc #normal sort by score (will return null) |
---|
613 | weight bottom #sort by weight ascending |
---|
614 | weight desc #sort by weight descending |
---|
615 | height desc,weight desc #sort by height descending, and use weight descending to break any ties |
---|
616 | height desc,weight asc #sort by height descending, using weight ascending as a tiebreaker |
---|
617 | </pre> |
---|
618 | <P> |
---|
619 | <DD><DL> |
---|
620 | </DL> |
---|
621 | </DD> |
---|
622 | </DL> |
---|
623 | <HR> |
---|
624 | |
---|
625 | <A NAME="toString(org.apache.lucene.search.Query, org.apache.solr.schema.IndexSchema, java.lang.Appendable, int)"><!-- --></A><H3> |
---|
626 | toString</H3> |
---|
627 | <PRE> |
---|
628 | public static void <B>toString</B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">Query</A> query, |
---|
629 | <A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> schema, |
---|
630 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</A> out, |
---|
631 | int flags) |
---|
632 | throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
633 | <DL> |
---|
634 | <DD><DL> |
---|
635 | |
---|
636 | <DT><B>Throws:</B> |
---|
637 | <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/search/QueryParsing.html#toString(org.apache.lucene.search.Query, org.apache.solr.schema.IndexSchema)"><CODE>toString(Query,IndexSchema)</CODE></A></DL> |
---|
638 | </DD> |
---|
639 | </DL> |
---|
640 | <HR> |
---|
641 | |
---|
642 | <A NAME="toString(org.apache.lucene.search.Query, org.apache.solr.schema.IndexSchema)"><!-- --></A><H3> |
---|
643 | toString</H3> |
---|
644 | <PRE> |
---|
645 | public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">Query</A> query, |
---|
646 | <A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> schema)</PRE> |
---|
647 | <DL> |
---|
648 | <DD>Formats a Query for debugging, using the IndexSchema to make |
---|
649 | complex field types readable. |
---|
650 | <p/> |
---|
651 | <p> |
---|
652 | The benefit of using this method instead of calling |
---|
653 | <code>Query.toString</code> directly is that it knows about the data |
---|
654 | types of each field, so any field which is encoded in a particularly |
---|
655 | complex way is still readable. The downside is that it only knows |
---|
656 | about built in Query types, and will not be able to format custom |
---|
657 | Query classes. |
---|
658 | </p> |
---|
659 | <P> |
---|
660 | <DD><DL> |
---|
661 | </DL> |
---|
662 | </DD> |
---|
663 | </DL> |
---|
664 | <HR> |
---|
665 | |
---|
666 | <A NAME="toString(java.util.List, org.apache.solr.schema.IndexSchema)"><!-- --></A><H3> |
---|
667 | toString</H3> |
---|
668 | <PRE> |
---|
669 | public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>toString</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">Query</A>> queries, |
---|
670 | <A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A> schema)</PRE> |
---|
671 | <DL> |
---|
672 | <DD>Builds a list of String which are stringified versions of a list of Queries |
---|
673 | <P> |
---|
674 | <DD><DL> |
---|
675 | </DL> |
---|
676 | </DD> |
---|
677 | </DL> |
---|
678 | <!-- ========= END OF CLASS DATA ========= --> |
---|
679 | <HR> |
---|
680 | |
---|
681 | |
---|
682 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
683 | <A NAME="navbar_bottom"><!-- --></A> |
---|
684 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
685 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
686 | <TR> |
---|
687 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
688 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
689 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
690 | <TR ALIGN="center" VALIGN="top"> |
---|
691 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
692 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
693 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
694 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/QueryParsing.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
695 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
696 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
697 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
698 | </TR> |
---|
699 | </TABLE> |
---|
700 | </TD> |
---|
701 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
702 | </EM> |
---|
703 | </TD> |
---|
704 | </TR> |
---|
705 | |
---|
706 | <TR> |
---|
707 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
708 | <A HREF="../../../../org/apache/solr/search/QParserPlugin.html" title="class in org.apache.solr.search"><B>PREV CLASS</B></A> |
---|
709 | <A HREF="../../../../org/apache/solr/search/QueryParsing.StrParser.html" title="class in org.apache.solr.search"><B>NEXT CLASS</B></A></FONT></TD> |
---|
710 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
711 | <A HREF="../../../../index.html?org/apache/solr/search/QueryParsing.html" target="_top"><B>FRAMES</B></A> |
---|
712 | <A HREF="QueryParsing.html" target="_top"><B>NO FRAMES</B></A> |
---|
713 | <SCRIPT type="text/javascript"> |
---|
714 | <!-- |
---|
715 | if(window==top) { |
---|
716 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
717 | } |
---|
718 | //--> |
---|
719 | </SCRIPT> |
---|
720 | <NOSCRIPT> |
---|
721 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
722 | </NOSCRIPT> |
---|
723 | |
---|
724 | |
---|
725 | </FONT></TD> |
---|
726 | </TR> |
---|
727 | <TR> |
---|
728 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
729 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
730 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
731 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
732 | </TR> |
---|
733 | </TABLE> |
---|
734 | <A NAME="skip-navbar_bottom"></A> |
---|
735 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
736 | |
---|
737 | <HR> |
---|
738 | |
---|
739 | <address>Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.</address> |
---|
740 | <script src='../../../../prettify.js' type='text/javascript'></script> |
---|
741 | <script type='text/javascript'> |
---|
742 | (function(){ |
---|
743 | var oldonload = window.onload; |
---|
744 | if (typeof oldonload != 'function') { |
---|
745 | window.onload = prettyPrint; |
---|
746 | } else { |
---|
747 | window.onload = function() { |
---|
748 | oldonload(); |
---|
749 | prettyPrint(); |
---|
750 | } |
---|
751 | } |
---|
752 | })(); |
---|
753 | </script> |
---|
754 | |
---|
755 | </BODY> |
---|
756 | </HTML> |
---|