Solr 4.0: new fl parameter functionalities – first look | Solr Enterprise Search
The last functionality, which we will look at today, is the ability add the result of the function, as a field in the documents returned by Solr. Thus, in Solr 4.0 will have the option to add such values as sum of prices, or calculated distance between two points. Quite useful. To use this functionality You will have to add the appropriate function call to the fl parameter for example:
1 | fl=*,stock:sum(stockMain,stockShop) |
The above will result in Solr returning all the fields for the document (value *) and a field named stock, which will be the sum of two fields: stockShop and stockMain.
Read full article from Solr 4.0: new fl parameter functionalities – first look | Solr Enterprise Search
No comments:
Post a Comment