You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Deepak Udapudi <DU...@delta.org> on 2018/02/08 22:02:13 UTC

lat/long (location ) field context filters for autosuggestions

Hi all,

We are trying to apply context filter for autosuggestions by passing the lat/long of a particular location.
We know that, we can apply the context field for a particular field which takes one value.
How do we apply the same context filtering for a field which takes two values lat/long i.e location in our case.
Any pointers / suggestions to index/retrieve the suggestions would be really helpful.

Thanks in advance.

Regards,
Deepak




The information contained in this email message and any attachments is confidential and intended only for the addressee(s). If you are not an addressee, you may not copy or disclose the information, or act upon it, and you should delete it entirely from your email system. Please notify the sender that you received this email in error.

RE: lat/long (location ) field context filters for autosuggestions

Posted by Deepak Udapudi <DU...@delta.org>.
Thanks Emir for the response.

Please have a look at the URL below.

https://lucene.apache.org/solr/guide/6_6/suggester.html

We used the above URL to get the suggestions based on the context field. We used zip code as the context field to fetch the dentists in that particular zip code. It is working without any issues.

As a next step, we are trying to get the suggestions for the dentists within 60 miles of the specified lat/long values.

My queries are as specified below.

i) Will I be able to specify the lat/long values as context field? I don't see any documentation for the same. Please point me to something. When we use lat/long values as context field, we need to specify two values which is unknown to us right now. 
ii)Is it possible to fetch dentist auto suggestions by specifying the distance(for ex: 60 miles from 37.20,-121.00) from the specified lat/long values? Please suggest.

Thanks in advance.

Regards,
Deepak






-----Original Message-----
From: Emir Arnautović [mailto:emir.arnautovic@sematext.com] 
Sent: Monday, February 12, 2018 12:14 AM
To: solr-user@lucene.apache.org
Subject: Re: lat/long (location ) field context filters for autosuggestions

Hi Deepak,
Maybe it’s just me, but I am not sure what is the issue. Can you give some example what you are currently doing, what did you try and what issues did you run into.

Thanks,
Emir
--
Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/> On 9 Feb 2018, at 21:22, Deepak Udapudi <DU...@delta.org> wrote:
> 
> Hi all,
> 
> Any response on the below would be really helpful.
> 
> Thanks,
> Deepak
> 
> 
> -----Original Message-----
> From: Deepak Udapudi [mailto:DUdapudi@delta.org]
> Sent: Thursday, February 08, 2018 2:02 PM
> To: solr-user@lucene.apache.org
> Subject: lat/long (location ) field context filters for 
> autosuggestions
> 
> Hi all,
> 
> We are trying to apply context filter for autosuggestions by passing the lat/long of a particular location.
> We know that, we can apply the context field for a particular field which takes one value.
> How do we apply the same context filtering for a field which takes two values lat/long i.e location in our case.
> Any pointers / suggestions to index/retrieve the suggestions would be really helpful.
> 
> Thanks in advance.
> 
> Regards,
> Deepak
> 
> 
> 
> 
> The information contained in this email message and any attachments is confidential and intended only for the addressee(s). If you are not an addressee, you may not copy or disclose the information, or act upon it, and you should delete it entirely from your email system. Please notify the sender that you received this email in error.
> 
> 
> The information contained in this email message and any attachments is confidential and intended only for the addressee(s). If you are not an addressee, you may not copy or disclose the information, or act upon it, and you should delete it entirely from your email system. Please notify the sender that you received this email in error.



The information contained in this email message and any attachments is confidential and intended only for the addressee(s). If you are not an addressee, you may not copy or disclose the information, or act upon it, and you should delete it entirely from your email system. Please notify the sender that you received this email in error.

Re: lat/long (location ) field context filters for autosuggestions

Posted by Emir Arnautović <em...@sematext.com>.
Hi Deepak,
Maybe it’s just me, but I am not sure what is the issue. Can you give some example what you are currently doing, what did you try and what issues did you run into.

Thanks,
Emir
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/



> On 9 Feb 2018, at 21:22, Deepak Udapudi <DU...@delta.org> wrote:
> 
> Hi all,
> 
> Any response on the below would be really helpful.
> 
> Thanks,
> Deepak
> 
> 
> -----Original Message-----
> From: Deepak Udapudi [mailto:DUdapudi@delta.org] 
> Sent: Thursday, February 08, 2018 2:02 PM
> To: solr-user@lucene.apache.org
> Subject: lat/long (location ) field context filters for autosuggestions
> 
> Hi all,
> 
> We are trying to apply context filter for autosuggestions by passing the lat/long of a particular location.
> We know that, we can apply the context field for a particular field which takes one value.
> How do we apply the same context filtering for a field which takes two values lat/long i.e location in our case.
> Any pointers / suggestions to index/retrieve the suggestions would be really helpful.
> 
> Thanks in advance.
> 
> Regards,
> Deepak
> 
> 
> 
> 
> The information contained in this email message and any attachments is confidential and intended only for the addressee(s). If you are not an addressee, you may not copy or disclose the information, or act upon it, and you should delete it entirely from your email system. Please notify the sender that you received this email in error.
> 
> 
> The information contained in this email message and any attachments is confidential and intended only for the addressee(s). If you are not an addressee, you may not copy or disclose the information, or act upon it, and you should delete it entirely from your email system. Please notify the sender that you received this email in error.


RE: lat/long (location ) field context filters for autosuggestions

Posted by Deepak Udapudi <DU...@delta.org>.
Hi all,

Any response on the below would be really helpful.

Thanks,
Deepak


-----Original Message-----
From: Deepak Udapudi [mailto:DUdapudi@delta.org] 
Sent: Thursday, February 08, 2018 2:02 PM
To: solr-user@lucene.apache.org
Subject: lat/long (location ) field context filters for autosuggestions

Hi all,

We are trying to apply context filter for autosuggestions by passing the lat/long of a particular location.
We know that, we can apply the context field for a particular field which takes one value.
How do we apply the same context filtering for a field which takes two values lat/long i.e location in our case.
Any pointers / suggestions to index/retrieve the suggestions would be really helpful.

Thanks in advance.

Regards,
Deepak




The information contained in this email message and any attachments is confidential and intended only for the addressee(s). If you are not an addressee, you may not copy or disclose the information, or act upon it, and you should delete it entirely from your email system. Please notify the sender that you received this email in error.


The information contained in this email message and any attachments is confidential and intended only for the addressee(s). If you are not an addressee, you may not copy or disclose the information, or act upon it, and you should delete it entirely from your email system. Please notify the sender that you received this email in error.