At first I thought so too. Here is a simple document.

<add>
        <doc>
                <field name="id">1</field>
                <field name="name">first</field>
                <field name="work">48.60,11.61</field>
                <field name="home">52.67,7.30</field>
        </doc>
</add>

and here is the result that shouldn't be:

<response>
...
<str name="q">*:*</str>
<str name="fq">{!geofilt sfield=work pt=52.67,7.30 d=5}</str>
...
</lst>
</lst>
<result name="response" numFound="1" start="0">
<doc>
<str name="home">52.67,7.30</str>
<str name="id">1</str>
<str name="name">first</str>
<str name="work">48.60,11.61</str>
</doc>
</result>
</response>


Marc



On 12.10.2011, at 16:54, Erick Erickson wrote:

> Well, the simplest answer is that you're
> putting the same information in home and
> work. Or that they are close enough that
> they are both within the radius.
> 
> Gotta see the raw data to generate a better
> answer.
> 
> 
> Best
> Erick
> 
> On Wed, Oct 12, 2011 at 10:14 AM, Marc Tinnemeyer <marc-...@gmx.net> wrote:
>> Hi everyone,
>> 
>> I am a bit troubled by a recent change in my configuration. I had to add two 
>> additional fields of type "location" to the already existing one.
>> So the configuration looks like this:
>> 
>> <field name="home" type="location" indexed="true" stored="true"/>
>> <field name="work" type="location" indexed="true" stored="true"/>
>> <field name="elsewhere" type="location" indexed="true" stored="true"/>
>> <dynamicField name="*_coordinate"  type="tdouble" indexed="true"  
>> stored="false"/>
>> 
>> Assuming that there are docs in the index having "home" set to: "50,20"
>> 
>> When I run a query like: ...q=*:*&fq={!geofilt sfield=home pt=50,20 d=5} 
>> everything is in the greens. But changing the value of "sfield" to "work" or 
>> "elsewhere" while keeping "pt" returns exactly the same results. It seems to 
>> me that there is something strange.
>> 
>> Maybe somebody has an idea on this.
>> 
>> Thanks in advance
>> Kind Regards
>> Marc
>> 
>> 
>> 

Reply via email to