Re: Sort on PointFieldType

2019-07-05 Thread Prince Manohar
Thanks a lot. On Thu, Jul 4, 2019 at 9:19 PM Shawn Heisey wrote: > On 7/4/2019 9:14 AM, Prince Manohar wrote: > > I am using Solr version *6.4.2*. I got your answers. > > > > I have another question. Can we use a *Range query* on point field? > > > > I am trying to do something like > > > >

Re: Sort on PointFieldType

2019-07-04 Thread Shawn Heisey
On 7/4/2019 9:14 AM, Prince Manohar wrote: I am using Solr version *6.4.2*. I got your answers. I have another question. Can we use a *Range query* on point field? I am trying to do something like *fq=abc.pqr_d:[ 1500 TO 2000 ]* Is it a valid filter? Yes. In fact, range queries are one of

Re: Sort on PointFieldType

2019-07-04 Thread Prince Manohar
Thanks for the answers. I am using Solr version *6.4.2*. I got your answers. I have another question. Can we use a *Range query* on point field? I am trying to do something like *fq=abc.pqr_d:[ 1500 TO 2000 ]* Is it a valid filter? On Thu, Jul 4, 2019 at 1:47 PM Yasufumi Mizoguchi wrote:

Re: Sort on PointFieldType

2019-07-04 Thread Yasufumi Mizoguchi
Hi, Which version of Solr are you using? And what is the field settings? Reference guide says that sorting with single valued *PointType fields requires docValues="true" option in field settings.

Re: Sort on PointFieldType

2019-07-03 Thread Mark Sholund
My thought is that “greater than” and “less than” are generally undefined for n-dimensional points where n>1. Is (45,45) > (-45,-45)? If you’re talking about distance from (0,0) they’re “equal”. If you’re talking about distance from some arbitrary point then they are not necessarily “equal”;

Sort on PointFieldType

2019-07-03 Thread Prince Manohar
Hi, I have a *field* that is of *PointType *and I tried to sort on that field. But looks like sorting does not work on PointType. Or am I doing something wrong? Find my query below:- http://localhost:8983/solr/testcollection/select?indent=on=*:*=abc.pqr_d DESC=json