You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/08/26 00:28:25 UTC
[Solr Wiki] Update of "CommonQueryParameters" by ryan
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "CommonQueryParameters" page has been changed by ryan:
http://wiki.apache.org/solr/CommonQueryParameters?action=diff&rev1=40&rev2=41
||`*`||Return all fields the each document has||
||`* score`||Return all fields each document has, along with the score||
-
The default value is "`*`"
+
+ <!> [[Solr4.0]]
+ In 4.x, the fl parameter supports 'pseudo fields', see https://issues.apache.org/jira/browse/SOLR-2444
+
+ In 4.x, you can send fields as many parameters. For example:
+ &fl=id,name,price
+ is the same as:
+ &fl=id&fl=name&price
+
+
+ === glob ===
+
+ ||'''Example'''||'''Meaning'''||
+ ||`id,tag*`||return id and all fields that start with tag||
+
+
+
+ === functions ===
+
+ ||'''Example'''||'''Meaning'''||
+ ||`id,foo(c)`||id and a function ||
+
+
+
+ === Transformers: ===
+
+ [[http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/response/transform/DocTransformer.java|Transformers] manipulate SolrDocuments before they are returned. Standared transformers include:
+
+ ||'''Example'''||'''Meaning'''||
+ ||`[docid]`|| the lucene document id (int) ||
+ ||`[shard]`|| the id of the shard that produced the result ||
+ ||`[explain]`|| inline explain info ||
+ ||`[explain style=nl|text|html]`|| explain info with explicit style ||
+ ||`[value v=? t=int|double|float|date]`|| explict value ||
+
+ Custom Transformers can be registered in solrconfg.xml
+
+ === field alias ==
+
+ Any field, function, or transformer can be displayed with a different name in the output document:
+
+ ||'''Example'''||'''Meaning'''||
+ ||`id,price:crazy_price_field`||return the stored field 'crazy_price_field' but display it as 'price' ||
+ ||`id,price:sum(a,b)`||return price as the sum of fields a+b ||
+
+
<<Anchor(debugging)>>
== Debugging ==