One of the values of people reading docs for
the first time is that they uncover less-than-clear
issues. It's even more valuable if they update
the docs, so please feel free to!

Best
Erick

On Fri, Oct 28, 2011 at 9:43 AM, Christopher Gross <cogr...@gmail.com> wrote:
> Ah!  That all makes sense.  The example on the SpacialSearchDev page
> should have that bit added in!
>
> I'm back in business now, thanks Yonik!
>
> -- Chris
>
>
>
> On Fri, Oct 28, 2011 at 9:40 AM, Yonik Seeley
> <yo...@lucidimagination.com> wrote:
>> Oops, didn't mean for this conversation to leave the mailing lists.
>>
>> OK, so your lat and lon types were being stored as text but not
>> indexed (hence no search matches).
>> A dynamic field of "*" does tend to hide bugs/problems ;-)
>>
>>> So should I have another for _latLon?  Would it look like:
>>> <dynamicField name="*_latLon" type="double" indexed="true" stored="true"/>
>>
>> Yep.  It shouldn't be stored though (unless you just want to verify
>> for debugging).
>>
>> -Yonik
>> http://www.lucidimagination.com
>>
>>
>>
>> On Fri, Oct 28, 2011 at 9:35 AM, Christopher Gross <cogr...@gmail.com> wrote:
>>> Hi Yonik.
>>>
>>> I never made a dynamicField definition for _latLon ... I was following
>>> the examples on http://wiki.apache.org/solr/SpatialSearchDev, so I
>>> just added the field type definition, then the field in the list of
>>> fields.  I wasn't aware that I had to do anything else.  The only
>>> dynamic that I have is:
>>> <dynamicField name="*" type="text" indexed="false" stored="true"
>>> multiValued="true"/>
>>>
>>> So should I have another for _latLon?  Would it look like:
>>> <dynamicField name="*_latLon" type="double" indexed="true" stored="true"/>
>>>
>>> -- Chris
>>>
>>>
>>>
>>> On Fri, Oct 28, 2011 at 9:27 AM, Yonik Seeley
>>> <yo...@lucidimagination.com> wrote:
>>>> On Fri, Oct 28, 2011 at 8:42 AM, Christopher Gross <cogr...@gmail.com> 
>>>> wrote:
>>>>> Hi Yonik.
>>>>>
>>>>> I'm having more of a problem now...
>>>>> I made the following lines in my schema.xml (in the appropriate places):
>>>>>
>>>>> <fieldType name="location" class="solr.LatLonType" 
>>>>> subFieldSuffix="_latLon"/>
>>>>>
>>>>> <field name="point" type="location" indexed="true" stored="true"
>>>>> required="false"/>
>>>>>
>>>>> I have data (did a q=*:*, found one with a point):
>>>>> <str name="point">48.306074,14.286293</str>
>>>>> <arr name="point_0_latLon">
>>>>> <str>48.306074</str>
>>>>> </arr>
>>>>> <arr name="point_1_latLon">
>>>>> <str>14.286293</str>
>>>>> </arr>
>>>>>
>>>>> I've tried to do a bbox:
>>>>> q=*:*&fq=point:[30.0,10.0%20TO%2050.0,20.0]
>>>>> q=*:*&fq={!bbox}&sfield=point&pt=48,14&d=50
>>>>>
>>>>> And neither of those seem to find the point...
>>>>
>>>> Hmmm, what's the dynamicField definition for _latLon?  Is it indexed?
>>>> If you add debugQuery=true, you should be able to see the underlying
>>>> range queries for your explicit range query.
>>>>
>>>> -Yonik
>>>> http://www.lucidimagination.com
>>>>
>>>
>>
>

Reply via email to