Hi,
I want to be able to filter on different cities and also sort the results based
on geoproximity. But sorting doesn’t work:
admin_directory_search_geolocation?q=david=({!geofilt+sfield=adminLatLon+pt=33.0198431,-96.6988856+d=80+sort=min(geodist(33.0198431,-96.6988856))})+OR+({!geofilt+sfield=adminLatLon+pt=50.2171726,8.265894+d=80+sort=min(geodist(50.2171726,8.265894))})
Sorting works fine if I add ‘&’ in geofilt condition like :
q=david={!geofilt=adminLatLon=33.0198431,-96.6988856=80=geodist(33.0198431,-96.6988856)}
But when I combine the two FQs then sorting doesn’t work.
Please help.
Best regards,
Anushka gupta
From: David Smiley
Sent: Friday, September 13, 2019 10:29 PM
To: Anushka Gupta
Subject: [EXT]Re: Need urgent help with Solr spatial search using
SpatialRecursivePrefixTreeFieldType
Hello,
Please don't email me directly for public help. CC is okay if you send it to
solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> so that the
Solr community can benefit from my answer or might even answer it.
~ David Smiley
Apache Lucene/Solr Search Developer
http://www.linkedin.com/in/davidwsmiley<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_davidwsmiley=DwMFaQ=yIH1_-b1hO27QV_BdDph9suDL0Jq0WcgndLmIuQXoms=0egJOuVVdmY5VQTw_S3m4bVez1r-U8nqqi6RYBxO6tTbzryrDHrFoJROJ8r-TqNc=ulu2-5V3TDOnVNfRRQusod6-FoJcdeAWu5gGB3owryU=Hv2uYeXnut3oi1ijHp14BJ09QIZzhEI-onwzhnQYB8I=>
On Wed, Sep 11, 2019 at 11:27 AM Anushka Gupta
mailto:anushka_gu...@external.mckinsey.com>>
wrote:
Hello David,
I read a lot of articles of yours regarding Solr spatial search using
SpatialRecursivePrefixTreeFieldType. But unfortunately it doesn’t work for me
when I combine filter query with my keyword search.
Solr Version used : Solr 7.1.0
I have declared fields as :
Field values are populated like :
adminLatLon: [50.2171726,8.265894]
Query is :
/solr/ac3_persons/admin_directory_search_location?q=Idstein=Idstein={!geofilt%20cache=false%20cost=100}=adminLatLon=50.2171726,8.265894=500=recip(geodist(),2,200,20)=true
My request handler is :
admin_directory_search_location
I get results if I do :
/solr/ac3_persons/admin_directory_search_location?q=*:*=Idstein={!geofilt%20cache=false%20cost=100}=adminLatLon=50.2171726,8.265894=500=recip(geodist(),2,200,20)=true
But I do not get results when I add any keyword in q.
I am stuck in this issue since last many days. Could you please help with the
same.
Thanks,
Anushka Gupta
++
This email is confidential and may be privileged. If you have received it
in error, please notify us immediately and then delete it. Please do not
copy it, disclose its contents or use it for any purpose.
++
++
This email is confidential and may be privileged. If you have received it
in error, please notify us immediately and then delete it. Please do not
copy it, disclose its contents or use it for any purpose.
++