Configuration : Appendix - Virtual Field Expression Syntax
 
Appendix - Virtual Field Expression Syntax
Virtual fields allow you to compute values from many elements of the CloudView index. The main purpose of a virtual field is to access stored index fields. For example, a virtual field called revenue with expression price * quantity accesses the two fields and calculate the total price.
You can then use virtual fields for multiple areas within your search application. For example, for a given hit, virtual fields can calculate:
A meta to display in the search client.
The value for the hit in a dynamic numerical facet.
The value for the hit in a facet aggregation.
Ranking elements.
A value to use for filtering queries. For example, you can define a numerical prefix handler, total_price, allowing a user to make queries directly on the total price, such as total_price: > 500