Re: what is geodist default value

2014-04-08 Thread david.w.smi...@gmail.com
Huh. Well if you don't want the distance, don't put it in your "fl", wether it be in the request handler or the request. It may help to know that you can specify "fl" multiple times and the field list is ultimately the set of all of them. Given that, you could avoid putting distance:geodist(

Re: what is geodist default value

2014-04-08 Thread Aman Tandon
Sir the problem is that we have too many fields in our *fl*, which i didn't mentioned in my previous mail, and we have so many products in our organization who are using our search. So in our back end java files we are handling their requirements are providing results by customizing every product

Re: what is geodist default value

2014-04-08 Thread david.w.smi...@gmail.com
You're computing the distance from the locations you've put in your index to 0,0. Why 0,0? Wouldn't you want to provide a point at query time? On Tue, Apr 8, 2014 at 7:41 AM, Aman Tandon wrote: > In this case of *query 2* as mentioned in previous mail, there will be > distance calculation usi

Re: what is geodist default value

2014-04-08 Thread Aman Tandon
In this case of *query 2* as mentioned in previous mail, there will be distance calculation using *distance:geodist(0,0,**latlon)* as it will take the default lat and lon values , so how it can return the variable distance. With Regards Aman Tandon On Tue, Apr 8, 2014 at 5:06 PM, Aman Tandon wr

Re: what is geodist default value

2014-04-08 Thread Aman Tandon
Hi Sir, *Scenario*: I have to return the distances for every city search so I make these configurations as described below. *solrconfig.xml: * My request handler is "im.search" and its defaults are none json 20

Re: what is geodist default value

2014-04-07 Thread david.w.smi...@gmail.com
Hi, I'm not sure why you are asking or maybe I'm not getting what you *really* want to know. You'll get the geodesic distance (i.e. the "great circle distance", the distance on the surface of a sphere) from 0,0 (off the coast of Africa), to each point indexed in your "location" field. ~ David

what is geodist default value

2014-04-07 Thread Aman Tandon
Hello, In my index, i am using the LatlonType, for using the geodist to calculate the distance, and i am using it like geodist(lat, lon, location). Can anybody told me what value the geodist will return if i will pass geodist(0, 0, location) Thanks Aman Tandon