Fix docs to match current qparser syntax

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@677576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2008-07-17 13:16:13 +00:00
parent 14d8ee7389
commit bb64899936
8 changed files with 10 additions and 10 deletions

View File

@ -29,7 +29,7 @@ import org.apache.solr.search.function.ValueSource;
/**
* Create a boosted query from the input value. The main value is the query to be boosted.
* <br>Other parameters: <code>b</code>, the function query to use as the boost.
* <br>Example: <code>&lt;!boost b=log(popularity)&gt;foo</code> creates a query "foo"
* <br>Example: <code>{!boost b=log(popularity)}foo</code> creates a query "foo"
* which is boosted (scores are multiplied) by the function query <code>log(popularity</code>.
* The query to be boosted may be of any type.
*/

View File

@ -37,7 +37,7 @@ import java.util.Map;
* Create a dismax query from the input value.
* <br>Other parameters: all main query related parameters from the {@link org.apache.solr.handler.DisMaxRequestHandler} are supported.
* localParams are checked before global request params.
* <br>Example: <code>&lt;!dismax qf=myfield,mytitle^2&gt;foo</code> creates a dismax query across
* <br>Example: <code>{!dismax qf=myfield,mytitle^2}foo</code> creates a dismax query across
* across myfield and mytitle, with a higher weight on mytitle.
*/
public class DisMaxQParserPlugin extends QParserPlugin {

View File

@ -36,9 +36,9 @@ import java.util.ArrayList;
/**
* Create a field query from the input value, applying text analysis and constructing a phrase query if appropriate.
* <br>Other parameters: <code>f</code>, the field
* <br>Example: <code>&lt;!field f=myfield&gt;Foo Bar</code> creates a phrase query with "foo" followed by "bar"
* <br>Example: <code>{!field f=myfield}Foo Bar</code> creates a phrase query with "foo" followed by "bar"
* if the analyzer for myfield is a text field with an analyzer that splits on whitespace and lowercases terms.
* This is generally equivalent to the lucene query parser expression <code>myfield:"Foo Bar"</code>
* This is generally equivalent to the Lucene query parser expression <code>myfield:"Foo Bar"</code>
*/
public class FieldQParserPlugin extends QParserPlugin {
public static String NAME = "field";

View File

@ -23,7 +23,7 @@ import org.apache.solr.request.SolrQueryRequest;
/**
* Create a function query from the input value.
* <br>Other parameters: none
* <br>Example: <code>&lt;!func&gt;log(foo)</code>
* <br>Example: <code>{!func}log(foo)</code>
*/
public class FunctionQParserPlugin extends QParserPlugin {
public static String NAME = "func";

View File

@ -34,7 +34,7 @@ import java.util.List;
* <li>q.op - the default operator "OR" or "AND"</li>
* <li>df - the default field name</li>
* </ul>
* <br>Example: <code>&lt;!lucene q.op=AND df=text sort='price asc'&gt;myfield:foo +bar -baz</code>
* <br>Example: <code>{!lucene q.op=AND df=text sort='price asc'}myfield:foo +bar -baz</code>
*/
public class LuceneQParserPlugin extends QParserPlugin {
public static String NAME = "lucene";

View File

@ -23,7 +23,7 @@ import org.apache.solr.request.SolrQueryRequest;
/**
* Parse Solr's variant of Lucene QueryParser syntax, including the
* deprecated sort specification after the query.
* <br>Example: <code>&lt;!lucenePlusSort&gt;myfield:foo +bar -baz;price asc</code>
* <br>Example: <code>{!lucenePlusSort}myfield:foo +bar -baz;price asc</code>
*/
public class OldLuceneQParserPlugin extends QParserPlugin {
public static String NAME = "lucenePlusSort";

View File

@ -27,8 +27,8 @@ import org.apache.solr.request.SolrQueryRequest;
* Create a prefix query from the input value. Currently no analysis or
* value transformation is done to create this prefix query (subject to change).
* <br>Other parameters: <code>f</code>, the field
* <br>Example: <code>&lt;!prefix f=myfield&gt;foo</code> is generally equivalent
* to the lucene query parser expression <code>myfield:foo*</code>
* <br>Example: <code>{!prefix f=myfield}foo</code> is generally equivalent
* to the Lucene query parser expression <code>myfield:foo*</code>
*/
public class PrefixQParserPlugin extends QParserPlugin {
public static String NAME = "prefix";

View File

@ -27,7 +27,7 @@ import org.apache.solr.request.SolrQueryRequest;
/**
* Create a term query from the input value without any text analysis or transformation whatsoever.
* <br>Other parameters: <code>f</code>, the field
* <br>Example: <code>&lt;!raw f=myfield&gt;Foo Bar</code> creates <code>TermQuery(Term("myfield","Foo Bar"))</code>
* <br>Example: <code>{!raw f=myfield}Foo Bar</code> creates <code>TermQuery(Term("myfield","Foo Bar"))</code>
*/
public class RawQParserPlugin extends QParserPlugin {
public static String NAME = "raw";