lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prince Manohar <princemanohar0...@gmail.com>
Subject Re: Sort on PointFieldType
Date Thu, 04 Jul 2019 15:14:34 GMT
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 <yasufumi0410@gmail.com>
wrote:

> 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.
>
> https://lucene.apache.org/solr/guide/8_1/field-types-included-with-solr.html#field-types-included-with-solr
>
> Thanks,
> Yasufumi
>
> 2019年7月4日(木) 3:50 Prince Manohar <princemanohar0909@gmail.com>:
>
> > 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&q=*:*&sort=abc.pqr_d
> > DESC&wt=json
> > <
> http://localhost:8983/solr/testcollection/select?indent=on&q=*:*&sort=abc.pqr_dDESC&wt=json
> >
> > <
> >
> http://localhost:8983/solr/markustest1/select?indent=on&q=*:*&sort=facet_en_price.UNITED_STATES_d%20DESC&wt=json
> > >
> >
> > --
> > *Regards,
> > <
> >
> https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf
> > >*
> > *Prince Manohar
> > <
> >
> https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf
> > >*
> > *B.Tech (InformationTechnology)
> > <https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
> > *Bengaluru
> > <
> >
> https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf
> > >*
> > *+91 7797045315
> > <
> >
> https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf
> > >*
> >
>


-- 
*Regards,
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*Prince Manohar
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*B.Tech (InformationTechnology)
<https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
*Bengaluru
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*+91 7797045315
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message