lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "CommonQueryParameters" by ryan
Date Thu, 25 Aug 2011 22:28:25 GMT
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 ==

Mime
View raw message