Hi
Thanks a lot , that helps
Regards
Mukund
On Thu, Dec 12, 2013 at 1:18 AM, Kydryavtsev Andrey wrote:
> As I know (not 100% sure actually), function queries don't work with
> multivalued fields. Why do you need multivalued fields here? Your "price"
> and "numberOfCities" don't look like multi
As I know (not 100% sure actually), function queries don't work with
multivalued fields. Why do you need multivalued fields here? Your "price" and
"numberOfCities" don't look like multivalued. At least you can try to use, you
know, some tricky format like
"50;40;20" to index multivalued field a
Hi Kydryavtsev
Thanks a lot it works, but how do i pass a multivalued field values to a
function query?
Can it be passed as a String array?
Thanks & Regards
Mukund
On Tue, Dec 10, 2013 at 12:05 PM, Kydryavtsev Andrey wrote:
> You can implement it in this way:
> Index number of cities as new
You can implement it in this way:
Index number of cities as new int field (like 2) and implement user function like
"customFunction(price, numberOfCities, 1, 2000, 5)"
Custom parser should parse this into value sources list. From first two field
sources we can get per doc value for this part
Hi Hoss,
Thanks a lot for your response. The actual problem is,
For every record that I query, I have to execute a formula and sort the
records based on the value of the formula.
The formula has elements from the record.
For eg. for the following document ,I need to apply the formula (maxprice -
Smells like an XY problem ...
Can you please describe what your end goal is in writing a custom
function, and what you would do with things like the "name" field inside
your funciton?
In general, accessing stored field values for indexed documents ca be
prohibitively expensive, it rather defe