Function queries with Json facet

2017-06-04 Thread Mikhail Ibraheem
Hi,I have a date field date_of_birth and have double field grade. I can easily get the sum of grades per date_of_birth value using:{date_of_birth:{          type:terms,        field:"date_of_birth", facet: {   "metric":"sum(grade)" }  }} But what if I want to group only part of the date_

polygon self-crossing

2017-06-04 Thread rgamarra
Hi there all, I'm using the RPT field type to perform geospatial polygonal searches (e.g. https://cwiki.apache.org/confluence/display/solr/Spatial+Search)/ How do you recommend with self-crossing polygons (8 figure or bow-tie, for example)? Decompose it in a multi polygon? Setting to "none" vali

Re: polygon self-crossing

2017-06-04 Thread rgamarra
Sorry, I'd like to add further information regarding the validation rule. My question comes because of what's said in the doc link at the bottom. What kind of unexpected behavior can happen? none Geometries will not be validated (because it's kinda expensive to calculate). You may or may not ul

Re: polygon self-crossing

2017-06-04 Thread Nitin Kumar
Yes, decompose into multi polygon. On 05-Jun-2017 6:11 AM, "rgamarra" wrote: > Hi there all, > > I'm using the RPT field type to perform geospatial polygonal searches (e.g. > https://cwiki.apache.org/confluence/display/solr/Spatial+Search)/ > > How do you recommend with self-crossing polygons (8

Re: polygon self-crossing

2017-06-04 Thread rgamarra
Thanks for prompt answer. Any recommendation to perform that operation in java? The different simplify @ jst don't work as expected (eg they lose one of lobes). Best On Jun 4, 2017 9:54 PM, "Nitin Kumar" wrote: > Yes, decompose into multi polygon. > > On 05-Jun-2017 6:11 AM, "rgamarra" wrot